:root {
  --ink: #172c3a;
  --muted: #7d8b96;
  --line: #e6ebef;
  --blue: #2563eb;
  --nav: #122a3b;
  --bg: #f4f7fa;
  --green: #20967c
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background: var(--bg)
}

button,
input,
select,
textarea {
  font: inherit
}

button,
a,
input,
select,
textarea {
  outline-offset: 3px
}

button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 7px;
  padding: 8px 14px;
  transition: .18s
}

button:hover {
  border-color: #9fb7d4;
  background: #f0f5ff
}

button.primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue)
}

button.primary:hover {
  background: #1b4fc5
}

.shell {
  display: grid;
  grid-template-columns: 226px 1fr;
  min-height: 100vh
}

.sidebar {
  background: var(--nav);
  color: #b3c3cd;
  padding: 29px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  width: 226px;
  display: flex;
  flex-direction: column
}

.brand {
  font-size: 23px;
  letter-spacing: 3px;
  color: white;
  font-weight: 700;
  margin: 0 12px 34px
}

.brand small {
  font-size: 10px;
  letter-spacing: 2px;
  color: #91a8b7;
  display: block;
  margin-top: 2px
}

.brandicon {
  display: inline-block;
  color: #8fbcff;
  margin-right: 8px;
  font-size: 28px
}

.navlabel {
  font-size: 10px;
  letter-spacing: 2px;
  color: #7590a2;
  margin: 18px 15px 9px
}

.navbtn {
  text-align: left;
  border: 0;
  background: transparent;
  color: #b3c3cd;
  width: 100%;
  padding: 12px 16px;
  margin: 3px 0;
  display: flex;
  gap: 13px
}

.navbtn.active {
  background: #244253;
  color: #fff;
  box-shadow: inset 3px 0 #62a3ff
}

.navbtn:hover {
  background: #203c4e;
  color: #fff
}

.navbtn>span:first-child {
  font-size: 17px;
  width: 20px
}

.sidebottom {
  margin-top: auto;
  padding: 22px 12px 0;
  font-size: 11px;
  border-top: 1px solid #2c4352
}

.online {
  color: #7bd6b4
}

.main {
  grid-column: 2;
  min-width: 0
}

.topbar {
  min-height: 76px;
  height: auto;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 14px 34px
}

.crumb {
  font-size: 12px;
  color: #84929c
}

.crumb strong {
  color: #263d4c;
  font-weight: 500;
  margin-left: 10px
}

.user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px
}

.avatar {
  background: #eaf1ff;
  color: #3868b2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 600
}

.content {
  max-width: 1640px;
  margin: auto;
  padding: 30px 34px 50px
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: #6b8a9d;
  margin-bottom: 4px
}

.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
  gap: 18px
}

h1 {
  font-size: 27px;
  letter-spacing: .5px;
  margin: 0 0 5px;
  font-weight: 650
}

h2 {
  font-size: 16px;
  margin: 0
}

h3 {
  margin: 0 0 15px;
  font-size: 16px
}

p {
  margin: 5px 0
}

.sub {
  color: var(--muted);
  font-size: 12px
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px
}

.stat {
  padding: 19px 21px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px
}

.stat .label {
  font-size: 12px;
  color: #667e8d;
  display: flex;
  justify-content: space-between
}

.stat .value {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: .2px;
  margin: 9px 0 5px
}

.stat .value small {
  font-size: 12px;
  font-weight: 400;
  margin-left: 7px;
  color: #8b99a2
}

.stat .hint {
  font-size: 11px;
  color: #8c9aa4
}

.stat .mini {
  color: #4d7dca;
  background: #edf3ff;
  padding: 1px 6px;
  border-radius: 4px
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px
}

.paneltitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  gap: 14px
}

.count {
  font-size: 11px;
  background: #edf2f7;
  color: #778c9c;
  padding: 2px 8px;
  border-radius: 5px;
  margin-left: 8px
}

.tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px
}

.tab {
  border: 0;
  border-radius: 0;
  color: #7b8c98;
  padding: 13px 2px;
  background: white
}

.tab.active {
  color: var(--blue);
  box-shadow: inset 0 -2px var(--blue)
}

.filters {
  display: flex;
  gap: 10px;
  padding: 18px 22px;
  flex-wrap: wrap;
  align-items: center
}

.search {
  min-width: 240px;
  flex: 1
}

.filters input,
.filters select {
  height: 37px;
  font-size: 12px
}

input,
select,
textarea {
  border: 1px solid #dfe6ec;
  background: #fff;
  padding: 8px 11px;
  border-radius: 6px;
  color: #334d5e;
  min-width: 0
}

input::placeholder {
  color: #9aa8b4
}

input:focus,
select:focus,
textarea:focus {
  border-color: #779fec;
  outline: 2px solid #e8f0ff
}

.tablewrap {
  overflow-x: auto
}

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap
}

th {
  background: #f8fafc;
  color: #8494a0;
  text-align: left;
  font-weight: 500;
  font-size: 11px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line)
}

td {
  padding: 17px 18px;
  font-size: 12px;
  border-bottom: 1px solid #eff2f5
}

tbody tr:hover {
  background: #f9fbff
}

tbody tr:last-child td {
  border-bottom: 0
}

/* Keep long vessel names inside their own table column. */
.project-table {
  min-width: 1200px
}

.project-table th:first-child,
.project-table td:first-child {
  min-width: 260px;
  width: 26%
}

.project-identity {
  display: grid;
  grid-template-columns: 33px minmax(0, 1fr);
  align-items: start;
  gap: 10px
}

.project-identity .shipicon {
  float: none;
  margin: 0
}

.project-text {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere
}

.projectname {
  font-weight: 600;
  font-size: 13px
}

.code {
  font-size: 10px;
  color: #8a9aa7;
  letter-spacing: .5px;
  margin-top: 4px
}

.shipicon {
  width: 33px;
  height: 33px;
  border: 1px solid #e3ebf4;
  background: #f2f6fb;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #7693af;
  float: left;
  margin-right: 10px
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  font-size: 10px;
  padding: 3px 8px;
  background: #eff6ff;
  color: #4281d0
}

.badge:before {
  content: ' ';
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%
}

.badge.done {
  background: #edf8f3;
  color: #32977b
}

.num {
  font-variant-numeric: tabular-nums;
  font-weight: 550
}

.link {
  border: 0;
  background: transparent;
  color: #417acc;
  padding: 2px;
  font-size: 12px
}

.danger {
  color: #cb654e
}

.bar {
  width: 92px;
  height: 4px;
  background: #eaf0f5;
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden
}

.bar i {
  display: block;
  height: 100%;
  background: #7f9fce
}

.foot {
  display: flex;
  justify-content: space-between;
  padding: 15px 22px;
  font-size: 11px;
  color: #8b9ba7
}

.gridtwo {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px
}

.padding {
  padding: 22px
}

.costrow {
  display: grid;
  grid-template-columns: 70px 1fr 100px;
  align-items: center;
  gap: 16px;
  margin: 17px 0;
  font-size: 12px
}

.costrow .bar {
  width: 100%;
  margin: 0;
  height: 7px
}

.costrow .num {
  text-align: right
}

.empty {
  text-align: center;
  padding: 55px 25px;
  color: #8a9ba7
}

.detailhero {
  background: linear-gradient(110deg, #16374b, #254c65);
  color: white;
  padding: 26px;
  border-radius: 9px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.detailhero .sub {
  color: #aac2d1
}

.detailgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  font-size: 12px
}

.detailgrid strong {
  display: block;
  margin-top: 5px
}

.chip {
  font-size: 11px;
  color: #5a7990;
  background: #eef3f8;
  padding: 3px 8px;
  border-radius: 4px
}

.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: #fff
}

.loginart {
  background: linear-gradient(140deg, #102d40, #1e4e68);
  padding: 65px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden
}

.loginart:after {
  content: ' ';
  position: absolute;
  width: 500px;
  height: 500px;
  right: -130px;
  top: 200px;
  border: 1px solid #ffffff15;
  border-radius: 50%;
  box-shadow: 0 0 0 65px #ffffff04, 0 0 0 130px #ffffff03
}

.loginart h1 {
  font-size: 42px;
  line-height: 1.5
}

.loginart p {
  color: #9db9ca;
  font-size: 15px;
  margin-top: 20px
}

.loginbox {
  align-self: center;
  max-width: 390px;
  width: 100%;
  margin: 50px auto;
  padding: 25px
}

.loginbox h1 {
  font-size: 25px
}

.loginbox form {
  display: grid;
  gap: 15px;
  margin-top: 30px
}

label {
  font-size: 12px;
  color: #687f8d;
  display: flex;
  flex-direction: column;
  gap: 6px
}

dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  max-width: 720px;
  width: calc(100% - 40px);
  max-height: 90vh;
  color: var(--ink);
  box-shadow: 0 22px 85px #122a3b35
}

dialog::backdrop {
  background: #10273770;
  backdrop-filter: blur(3px)
}

.modalhead {
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center
}

.formgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  padding: 24px
}

.full {
  grid-column: 1/-1
}

.modalfoot {
  padding: 17px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #fafcfe
}

.error {
  color: #c45240;
  font-size: 12px;
  white-space: normal
}

.roles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px
}

.role {
  background: white;
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 9px
}

.role p {
  color: #8395a2;
  font-size: 12px
}

.role h3 {
  margin: 0 0 9px
}

#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #193748;
  color: white;
  padding: 10px 22px;
  border-radius: 7px;
  z-index: 20;
  display: none;
  box-shadow: 0 5px 30px #19374830
}

.filebox {
  border: 1px dashed #a9bdd4;
  border-radius: 8px;
  background: #f7faff;
  padding: 20px
}

.note {
  padding: 12px 16px;
  background: #f6f9fc;
  font-size: 12px;
  color: #71899a;
  border-radius: 6px
}

.mobilebrand {
  display: none
}

a {
  color: #3475cb;
  text-decoration: none
}

@media(min-width:1450px) {

  td,
  th {
    padding-left: 23px;
    padding-right: 23px
  }
}

@media(max-width:1100px) {
  .sidebar {
    width: 185px
  }

  .shell {
    grid-template-columns: 185px 1fr
  }

  .content {
    padding: 25px 22px
  }

  .topbar {
    padding: 14px 22px
  }

  .stats {
    gap: 10px
  }

  .stat {
    padding: 15px
  }

  .stat .value {
    font-size: 24px
  }

  .gridtwo {
    grid-template-columns: 1fr
  }

  .detailgrid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media(max-width:760px) {
  .shell {
    display: block
  }

  .sidebar {
    position: static;
    width: 100%;
    padding: 13px;
    display: block
  }

  .brand {
    margin: 0 0 10px;
    font-size: 20px
  }

  .brand small,
  .navlabel,
  .sidebottom {
    display: none
  }

  .sidebar nav {
    display: flex;
    overflow: auto
  }

  .navbtn {
    white-space: nowrap;
    width: auto;
    padding: 8px 12px;
    font-size: 12px
  }

  .main {
    width: 100%
  }

  .topbar {
    height: 60px;
    padding: 0 16px
  }

  .content {
    padding: 22px 14px
  }

  .stats {
    grid-template-columns: repeat(2, 1fr)
  }

  .pagehead {
    align-items: flex-start;
    flex-direction: column
  }

  .pagehead h1 {
    font-size: 24px
  }

  .filters {
    padding: 14px
  }

  .search {
    min-width: 100%;
    width: 100%
  }

  .roles {
    grid-template-columns: 1fr
  }

  .formgrid {
    grid-template-columns: 1fr
  }

  .full {
    grid-column: 1
  }

  .login {
    display: block
  }

  .loginart {
    padding: 30px
  }

  .loginart h1 {
    font-size: 26px
  }

  .loginart .brand {
    margin-bottom: 25px
  }

  .loginart p {
    font-size: 12px
  }

  .loginart>small {
    display: none
  }

  .loginbox {
    margin: 20px auto
  }

  .detailhero {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column
  }

  .crumb {
    font-size: 10px
  }

  .user {
    gap: 6px
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 2px;
  margin-left: 0;
  margin-right: 0
}

.brandlogo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex: none;
  background: white;
  border-radius: 7px;
  padding: 3px
}

.brandtext {
  font-size: 23px;
  min-width: 0
}

.brandtext small {
  font-size: 8px;
  letter-spacing: 1px;
  line-height: 1.7
}

.loginart .brandlogo {
  width: 80px;
  height: 80px
}

.loginart .brandtext {
  font-size: 30px
}

.loginart .brandtext small {
  font-size: 10px
}

@media(max-width:1100px) {
  .sidebar .brandlogo {
    width: 49px;
    height: 49px
  }

  .sidebar .brandtext {
    font-size: 20px
  }

  .sidebar .brandtext small {
    font-size: 7px;
    letter-spacing: .5px
  }
}

@media(max-width:760px) {
  .sidebar .brandlogo {
    width: 42px;
    height: 42px
  }

  .sidebar .brandtext small {
    display: block
  }

  .loginart .brandlogo {
    width: 64px;
    height: 64px
  }
}

.success {
  padding: 12px 14px;
  margin-top: 20px;
  border: 1px solid #bce2cd;
  border-radius: 6px;
  background: #eef9f2;
  color: #26774e;
  font-size: 13px
}

.error:not(:empty) {
  padding: 10px 12px;
  border: 1px solid #efd1ca;
  background: #fff5f2;
  border-radius: 6px
}

button:disabled {
  opacity: .65;
  cursor: wait
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 4px 22px 22px
}

.archive-card {
  text-align: left;
  padding: 20px;
  white-space: normal;
  min-width: 0;
  background: #fff;
  border: 1px solid #e1e9f0;
  border-radius: 9px
}

.archive-card:hover {
  border-color: #81a9df;
  background: #f8fbff;
  box-shadow: 0 5px 16px #203e6610
}

.archive-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px
}

.foldericon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 38px;
  font-size: 32px;
  line-height: 1;
  color: #5789c5;
  background: #edf4fc;
  border-radius: 7px
}

.archive-card h3 {
  font-size: 15px;
  margin: 7px 0 8px;
  overflow-wrap: anywhere;
  line-height: 1.6
}

.archive-card-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 0;
  margin-top: 10px;
  font-size: 12px;
  color: #738c9f
}

.archive-card-stats strong {
  font-size: 21px;
  color: #263e50;
  margin-right: 3px
}

.archive-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #e8edf3;
  padding-top: 13px;
  font-size: 10px;
  color: #879ba9
}

.archive-card-foot span:last-child {
  color: #407dca
}

.archive-grid>.empty {
  grid-column: 1/-1
}

@media(max-width:1150px) {
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:650px) {
  .archive-grid {
    grid-template-columns: 1fr;
    padding: 0 14px 14px
  }
}

.specialty-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 18px 22px 0
}

.specialty-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  background: #f8fafc;
  border-color: #e3eaf1;
  font-size: 12px
}

.specialty-tab span {
  font-size: 11px;
  min-width: 20px;
  text-align: center;
  border-radius: 4px;
  background: #e9eff6;
  color: #75889b;
  padding: 0 5px
}

.specialty-tab.active {
  background: #edf4ff;
  border-color: #93b5f1;
  color: #2563eb
}

.specialty-tab.active span {
  background: #d8e7ff;
  color: #2563eb
}

@media(max-width:650px) {
  .specialty-tabs {
    padding: 14px 14px 0;
    gap: 7px
  }

  .specialty-tab {
    padding: 7px 10px
  }
}

#modal:has([data-kind="drawing-folder"]) {
  max-width: 1100px
}

.folder-list {
  max-height: 330px;
  overflow: auto;
  border: 1px solid #e4ebf2;
  border-radius: 7px
}

.folder-list th,
.folder-list td {
  padding: 9px;
  font-size: 11px
}

.folder-list input:not([type="checkbox"]) {
  width: 150px
}

.folder-list select {
  width: 90px
}

.folder-status {
  min-width: 150px;
  max-width: 230px;
  white-space: normal
}

.archive-path {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis
}

.folder-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center
}

.pagehead>div:first-child {
  min-width: 0;
  flex: 1
}

.pagehead>.actions {
  flex-wrap: nowrap;
  flex-shrink: 0;
  max-width: 100%;
  overflow-x: auto
}

.pagehead>.actions>button {
  white-space: nowrap;
  flex: none
}

.account-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  white-space: nowrap
}

.danger-button {
  background: #c7463b;
  color: white;
  border-color: #c7463b
}

.danger-button:hover {
  background: #ad3329;
  color: white;
  border-color: #ad3329
}

@media(max-width:760px) {
  .pagehead>.actions {
    width: 100%
  }
}

.navbtn {
  align-items: center
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 24px
}

.nav-icon svg {
  display: block;
  width: 20px;
  height: 20px
}

.bilingual {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  white-space: normal
}

.bilingual>span[lang="zh-CN"] {
  display: block
}

.bi-en {
  display: block;
  font-size: .8em;
  line-height: 1.35;
  opacity: .78;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 3px
}

.navbtn>span:last-child {
  min-width: 0;
  flex: 1
}

.navbtn .bi-en {
  font-size: 10px
}

.pagehead h1 .bi-en {
  font-size: 15px
}

.pagehead>.actions {
  align-items: stretch
}

.pagehead>.actions button {
  display: flex;
  align-items: center;
  justify-content: center
}

.pagehead>.actions button .bi-en {
  font-size: 10px;
  white-space: nowrap
}

th .bi-en {
  min-width: 65px;
  font-size: 10px
}

td .bi-en {
  font-size: 10px
}

.stat .label {
  gap: 10px
}

.stat .value {
  line-height: 1.35
}

.stat .value small .bi-en {
  font-size: 9px
}

.stat .hint {
  min-height: 32px
}

.navlabel .bilingual {
  font-size: 9px
}

.crumb .bi-en {
  display: inline;
  font-size: 9px;
  margin-left: 6px
}

.loginart h1 .bi-en {
  font-size: 21px;
  margin-top: 7px
}

.specialty-tab {
  align-items: center
}

.specialty-tab>.bilingual {
  min-width: 50px
}

.folder-list .bi-en {
  font-size: 9px
}

.user {
  align-items: center
}

.user .bi-en {
  font-size: 9px
}

button .bilingual {
  text-align: inherit
}

.modalfoot button .bi-en {
  font-size: 10px
}

.costrow {
  grid-template-columns: 95px 1fr 105px
}

.costrow .bi-en {
  font-size: 9px
}

label>.bilingual {
  align-self: flex-start
}

select {
  max-width: 100%
}

.sidebar nav {
  flex-shrink: 1
}

.sidebar .brand {
  flex-shrink: 0
}

.sidebottom {
  padding-top: 12px
}

.sidebottom .bi-en {
  font-size: 9px
}

.formgrid {
  align-items: start
}

@media(max-width:760px) {
  .sidebar nav .navbtn {
    min-width: 110px
  }

  .loginart h1 .bi-en {
    font-size: 16px
  }

  .pagehead h1 .bi-en {
    font-size: 14px
  }

  .stat .value {
    font-size: 23px
  }
}

.connection-status {
  display: flex;
  align-items: flex-start;
  gap: 8px
}

.service-dot {
  display: block;
  width: 7px;
  height: 7px;
  margin-top: 5px;
  flex: none;
  border-radius: 50%;
  background: #7bd6b4
}

.connection-copy {
  display: block;
  min-width: 0;
  flex: 1
}

.connection-copy>.bilingual {
  display: block
}

.service-note {
  margin-top: 8px
}

.product-version {
  margin-top: 18px
}

.user-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5
}

.user-role {
  display: inline-block;
  font-size: 10px;
  line-height: 1.25;
  padding: 3px 7px;
  border: 1px solid #e1e8ef;
  border-radius: 5px;
  background: #f4f7fa;
  color: #627c90
}

.user-role .bi-en {
  font-size: 9px;
  line-height: 1.2;
  margin-top: 1px
}

.topbar>.user {
  gap: 10px;
  max-width: 100%;
  flex-wrap: wrap;
  min-width: 0
}

.topbar>.user .avatar,
.topbar>.user .link {
  flex: none
}

.topbar>.user .user-identity {
  overflow-wrap: anywhere
}

@media(max-width:760px) {
  .user-name {
    font-size: 11px
  }

  .user-role {
    font-size: 9px
  }

  .user-role .bi-en {
    font-size: 8px
  }

  .topbar>.user {
    gap: 6px
  }
}

/* Shared module navigation and master-data workspace */
.modulebar {
  display: flex;
  gap: 5px;
  padding: 12px 28px;
  background: #fff;
  border-bottom: 1px solid #e1e8ef;
  overflow-x: auto;
  position: sticky;
  top: 0;
  z-index: 5
}

.modulebar button {
  border: 0;
  background: transparent;
  color: #718394;
  padding: 9px 16px;
  border-radius: 7px;
  flex-shrink: 0;
  text-align: left;
  font-weight: 600
}

.modulebar button.active {
  background: #eaf1ff;
  color: #245dda
}

.modulebar .bi-en {
  font-size: 10px;
  white-space: nowrap
}

.sidebar nav {
  overflow-y: auto;
  flex: 1;
  min-height: 80px
}

.sidebar {
  display: flex;
  flex-direction: column
}

.sidebottom {
  position: static !important;
  margin-top: 25px
}

.navbtn {
  flex-shrink: 0
}

.md-summary {
  display: flex;
  gap: 20px;
  margin: 0 0 22px
}

.md-summary>span {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 16px 22px;
  background: white;
  border: 1px solid #e1e8ef;
  border-radius: 9px;
  flex: 1
}

.md-summary strong {
  font-size: 21px;
  color: #163e57
}

.md-summary strong .bilingual {
  font-size: 12px
}

.md-filters {
  flex-wrap: wrap
}

.md-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}

.md-tags>.bilingual {
  background: #f0f5fa;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 11px
}

.md-description {
  white-space: pre-wrap;
  max-width: 420px;
  overflow-wrap: anywhere;
  margin-top: 8px
}

.md-description [data-user-content] {
  white-space: pre-wrap
}

details summary {
  cursor: pointer;
  color: #3c6589;
  margin-top: 8px
}

.md-tree {
  padding: 12px 20px
}

.md-tree-row {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f6
}

.md-tree-children {
  margin-left: 28px;
  border-left: 1px solid #e1e8ef;
  padding-left: 18px
}

.md-tree-name {
  min-width: 140px;
  flex: 1
}

.md-tree-name strong {
  display: block
}

.md-tree-name .code {
  display: block;
  margin-top: 4px
}

.md-tree-row .actions {
  justify-content: flex-end;
  flex-wrap: wrap
}

.md-toggle {
  padding: 3px 6px;
  font-size: 10px;
  min-width: 42px
}

.md-toggle .bi-en {
  font-size: 9px
}

.md-tree-leaf {
  width: 42px;
  flex: none;
  text-align: center;
  color: #91a4b4
}

.md-tree-row>.chip {
  font-size: 10px
}

.md-tree-row .link {
  font-size: 11px;
  padding: 5px
}

.md-identities {
  border: 1px solid #dbe4ee;
  border-radius: 7px;
  display: flex;
  gap: 22px;
  padding: 14px;
  flex-wrap: wrap
}

.md-identities label {
  display: flex;
  align-items: center;
  gap: 8px
}

.md-identities input {
  width: auto
}

.md-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px
}

.md-gallery img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #f5f7fa;
  border: 1px solid #e1e8ef;
  border-radius: 5px
}

.md-gallery a {
  overflow-wrap: anywhere;
  font-size: 11px
}

.md-error {
  padding: 12px;
  border: 1px solid #f2c5bf;
  background: #fff3f1;
  color: #a33628
}

.md-quick {
  font-size: 11px;
  padding: 4px 8px;
  margin-top: 5px;
  justify-self: start
}

@media(min-width:1000px) {
  .sidebar {
    height: 100vh;
    position: sticky;
    top: 0
  }

  .sidebar .sidebottom {
    flex-shrink: 0
  }

  .main {
    min-width: 0
  }

  .pagehead h1 .bi-en {
    font-size: 16px;
    letter-spacing: 0
  }
}

@media(max-width:800px) {
  .modulebar {
    padding: 8px 12px;
    gap: 3px
  }

  .modulebar button {
    padding: 8px 10px;
    font-size: 12px
  }

  .md-summary {
    gap: 8px;
    flex-wrap: wrap
  }

  .md-summary>span {
    padding: 12px;
    min-width: 130px
  }

  .md-tree {
    padding: 8px
  }

  .md-tree-row {
    gap: 8px;
    flex-wrap: wrap
  }

  .md-tree-children {
    margin-left: 12px;
    padding-left: 8px
  }

  .md-tree-row .actions {
    width: 100%;
    justify-content: flex-start;
    padding-left: 24px
  }

  .md-tree-name {
    min-width: 90px
  }

  .md-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }

  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    overflow: visible
  }

  .sidebottom {
    display: none
  }
}

.sidebar nav .navbtn>span:only-child {
  width: auto;
  font-size: 12px;
  line-height: 1.25
}

.sidebar nav .navbtn:has(>span:only-child) {
  padding: 6px 13px;
  margin: 2px 0
}

.sidebar nav .navbtn:has(>span:only-child) .bi-en {
  font-size: 9px;
  margin-top: 2px
}

.sidebar nav {
  scrollbar-width: thin;
  scrollbar-color: #456174 transparent
}

.md-tree-name .bi-en {
  font-size: 10px
}

.md-summary .bi-zh {
  display: block
}

/* Refined module rail and consistently stacked bilingual breadcrumbs. */
.crumb {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  line-height: 1.35
}

.crumb strong {
  margin: 0;
  font-weight: 650;
  color: #243e52;
  min-width: 0
}

.crumb .bi-zh {
  display: block
}

.crumb .bi-en {
  display: block;
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.25;
  color: #8293a2;
  opacity: 1
}

.crumb-separator {
  font-size: 19px;
  font-weight: 300;
  color: #bbc7d1
}

.crumb>[data-user-content]:last-child:not(.bilingual) {
  font-size: 11px;
  overflow-wrap: anywhere
}

.modulebar {
  gap: 6px;
  margin: 14px 24px 0;
  padding: 8px;
  background: linear-gradient(115deg, #19374f, #11283c);
  border: 1px solid #29485f;
  border-radius: 12px;
  box-shadow: 0 5px 17px #15324913;
  top: 8px;
  scrollbar-width: thin;
  scrollbar-color: #49677e transparent
}

.modulebar button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 15px;
  border: 1px solid transparent;
  border-radius: 8px;
  position: relative;
  background: transparent;
  color: #b9cbd9;
  font-weight: 600;
  text-align: left;
  min-width: 148px;
  transition: background .18s, border-color .18s, color .18s
}

.modulebar button>.bilingual {
  flex: none
}

.modulebar button:hover {
  background: #ffffff0b;
  border-color: #ffffff14;
  color: white
}

.modulebar button.active {
  background: linear-gradient(120deg, #2d6ac6, #20549d);
  color: #fff;
  border-color: #5c94de66;
  box-shadow: 0 4px 12px #00000020
}

.modulebar button.active:after {
  content: '';
  height: 2px;
  position: absolute;
  bottom: 5px;
  left: 14px;
  right: 14px;
  background: #87d5ef;
  border-radius: 2px;
  opacity: .8
}

.module-symbol {
  width: 30px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 7px;
  background: #ffffff09;
  color: #9ab9d1
}

.module-symbol svg {
  width: 21px;
  height: 21px
}

.modulebar button.active .module-symbol {
  color: #e9f5ff;
  background: #ffffff15
}

.modulebar .bi-zh {
  display: block;
  font-size: 13px;
  letter-spacing: .3px;
  white-space: nowrap
}

.modulebar .bi-en {
  font-size: 10px;
  margin-top: 4px;
  color: inherit;
  opacity: .8;
  white-space: nowrap
}

.sidebar {
  background: linear-gradient(175deg, #152d40, #102536)
}

.sidebar .navbtn.active {
  background: linear-gradient(100deg, #304d64, #213e53);
  box-shadow: inset 3px 0 #87b7ef, 0 3px 10px #0000000b;
  border-radius: 7px
}

.sidebar .navbtn:hover {
  background: #ffffff0b
}

@media(max-width:1100px) {
  .modulebar {
    margin: 12px 20px 0
  }

  .modulebar button {
    min-width: 142px;
    padding: 11px 10px 15px;
    gap: 8px
  }

  .module-symbol {
    width: 27px
  }

  .modulebar .bi-zh {
    font-size: 12px
  }

  .modulebar .bi-en {
    font-size: 9px
  }
}

@media(max-width:760px) {
  .crumb {
    gap: 8px
  }

  .crumb .bi-en {
    font-size: 9px;
    margin-top: 3px
  }

  .crumb-separator {
    font-size: 15px
  }

  .topbar {
    height: auto;
    min-height: 70px;
    gap: 12px;
    padding: 10px 14px
  }

  .modulebar {
    margin: 10px 12px 0;
    padding: 6px;
    gap: 5px;
    top: 4px;
    border-radius: 9px
  }

  .modulebar button {
    flex: none;
    min-width: 142px;
    padding: 10px 11px 14px
  }

  .modulebar .bi-zh {
    font-size: 12px
  }

  .modulebar .bi-en {
    font-size: 9px
  }

  .module-symbol {
    width: 27px;
    height: 29px
  }

  .module-symbol svg {
    width: 19px;
    height: 19px
  }
}

/* Project estimate workspace */
.budget-projectbar {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 18px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap
}

.budget-projectbar>label {
  flex: 1;
  min-width: 220px;
  max-width: 520px
}

.budget-projectmeta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #7b8e9d;
  font-size: 11px
}

.budget-projectmeta strong {
  font-size: 20px;
  color: #24445c;
  letter-spacing: 1px
}

.budget-projectbar>.actions {
  margin-left: auto
}

.budget-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px
}

.budget-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 22px;
  color: #6c8191;
  font-size: 12px
}

.budget-stat strong {
  display: block;
  font-size: 25px;
  line-height: 1.4;
  color: #21415a;
  margin-top: 10px;
  overflow-wrap: anywhere
}

.budget-stat small {
  font-size: 10px;
  font-weight: 500;
  margin-left: 10px;
  color: #879baa
}

.budget-stat:last-child {
  border-top: 3px solid #2d6ac6;
  background: linear-gradient(115deg, #fff, #f3f7fd)
}

.budget-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 20px;
  align-items: start
}

.budget-category-note {
  padding: 12px 18px;
  font-size: 10px;
  color: #8698a5;
  border-bottom: 1px solid #edf1f6
}

.budget-tree {
  padding: 8px
}

.budget-all {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: #f6f9fc;
  text-align: left;
  margin-bottom: 6px
}

.budget-all.selected {
  color: #2463b8;
  background: #edf4fd
}

.budget-all strong {
  font-size: 10px
}

.budget-cat-row {
  display: flex;
  align-items: center;
  border-radius: 6px;
  padding-right: 4px;
  border-bottom: 1px solid #f1f4f7;
  gap: 4px;
  min-width: 0
}

.budget-cat-row.selected {
  background: #eaf2ff
}

.budget-cat-name {
  background: transparent;
  border: 0;
  flex: 1;
  min-width: 0;
  padding: 10px 7px;
  text-align: left;
  font-size: 11px;
  overflow-wrap: anywhere
}

.budget-cat-name .bi-en {
  font-size: 9px
}

.budget-cat-name:hover {
  background: #f0f5fc
}

.budget-cat-amount {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: #48637a;
  text-align: right;
  overflow-wrap: anywhere;
  max-width: 110px
}

.budget-cat-add {
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #3776c9;
  font-size: 12px
}

.budget-cat-add .bi-en {
  font-size: 8px
}

.budget-cat-children {
  margin-left: 10px;
  padding-left: 7px;
  border-left: 1px solid #e8edf4
}

.budget-lines-panel {
  min-width: 0
}

.budget-lines-panel .paneltitle {
  flex-wrap: wrap
}

.budget-table {
  white-space: normal;
  min-width: 790px
}

.budget-table td,
.budget-table th {
  padding: 15px 13px;
  vertical-align: top
}

.budget-table td:first-child {
  min-width: 180px;
  max-width: 270px
}

.budget-path {
  font-size: 10px;
  color: #8194a4;
  margin-top: 8px
}

.budget-path .bi-en {
  font-size: 9px
}

.budget-amount-detail {
  font-size: 10px;
  line-height: 1.7;
  color: #8798a7;
  margin-top: 8px
}

.budget-amount-detail .bilingual {
  min-width: 28px
}

.budget-source {
  font-size: 10px;
  overflow-wrap: anywhere;
  white-space: normal;
  display: block;
  max-width: 220px
}

.budget-generate {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #f8fafc;
  border-top: 1px solid var(--line);
  font-size: 11px
}

.budget-generate>button {
  flex: none
}

.budget-note {
  margin-top: 6px
}

.budget-preview {
  padding: 16px;
  background: #f2f7fd;
  border: 1px solid #dde8f6;
  border-radius: 8px;
  color: #54708b;
  font-size: 12px
}

.budget-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px
}

.budget-preview-grid strong {
  display: block;
  color: #244d76;
  margin-top: 7px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere
}

.budget-fx-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  justify-content: center
}

.budget-empty-actions {
  justify-content: center;
  margin-top: 20px
}

#modal:has([data-kind^="budget-"]) {
  max-width: 840px
}

@media(max-width:1300px) {
  .budget-layout {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 14px
  }

  .budget-stat strong {
    font-size: 22px
  }

  .budget-cat-amount {
    font-size: 9px;
    max-width: 90px
  }
}

@media(max-width:1050px) {
  .budget-layout {
    grid-template-columns: 1fr
  }

  .budget-tree {
    max-height: 370px;
    overflow: auto
  }

  .budget-projectbar {
    gap: 15px
  }

  .budget-projectbar>.actions {
    margin-left: 0
  }

  .budget-stat {
    padding: 16px
  }
}

@media(max-width:600px) {
  .budget-stats {
    grid-template-columns: 1fr;
    gap: 10px
  }

  .budget-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
  }

  .budget-stat strong {
    font-size: 20px;
    margin-top: 0
  }

  .budget-projectbar {
    padding: 15px
  }

  .budget-projectbar>label {
    min-width: 0;
    max-width: none;
    width: 100%
  }

  .budget-projectbar .actions {
    width: 100%;
    flex-wrap: wrap
  }

  .budget-projectbar button {
    font-size: 11px
  }

  .budget-generate {
    flex-direction: column;
    align-items: flex-start
  }

  .budget-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

.budget-source-link {
  display: block;
  font-size: 10px;
  padding: 6px 0;
  text-align: left
}

.budget-source-link .bi-en {
  font-size: 9px
}

.budget-category-panel {
  max-width: 100%
}

.translation-tools {
  font-size: 10px;
  color: #8094a5;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px
}

.translation-status {
  min-height: 28px
}

.translation-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap
}

.translation-buttons button {
  font-size: 10px;
  padding: 3px 0
}

.translation-review {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  font-size: 10px
}

.translation-review input {
  width: auto;
  min-width: 0
}

.translation-tools .bi-en {
  font-size: 9px
}

.translation-status:has(.bi-zh) {
  line-height: 1.4
}

.translation-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0
}

.translation-field>label {
  width: 100%
}

/* Business execution, project dossier, role matrix and printable inspection record. */
.work-prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.85;
  margin: 12px 0 22px
}

.work-prose .bi-en {
  white-space: pre-wrap;
  font-size: 12px
}

.work-source-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: #f2f6fb;
  border-radius: 7px;
  margin-bottom: 24px;
  font-size: 12px
}

.work-source-strip button {
  font-size: 11px
}

.work-transitions {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line)
}

.work-gallery {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 16px
}

.work-gallery>a {
  border: 1px solid #e2e9f1;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
  font-size: 11px;
  overflow-wrap: anywhere
}

.work-gallery img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #f5f8fb;
  border-radius: 5px
}

.work-gallery small {
  font-size: 9px;
  color: #8295a4
}

.work-file-symbol {
  height: 70px;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: #5882b1;
  background: #f1f6fc
}

.work-project-cover {
  width: 100%;
  max-height: 420px;
  object-fit: cover
}

.work-project-hero h1 {
  font-size: 30px
}

.work-project-hero h1 .bi-en {
  font-size: 20px
}

.work-source-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px
}

.work-source-cards button {
  padding: 14px 18px;
  background: #f5f8fc
}

.work-tasks {
  padding: 10px 20px
}

.work-task {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #edf1f6
}

.work-task:last-child {
  border: 0
}

.role-permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px
}

.role-permission-grid fieldset {
  border: 1px solid #dfe7f0;
  border-radius: 7px;
  padding: 12px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap
}

.role-permission-grid fieldset>label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  font-size: 11px
}

.role-permission-grid input {
  width: auto
}

.role-permission-grid legend {
  font-size: 12px;
  color: #3c5f7c
}

.work-detail .detailgrid {
  row-gap: 24px
}

.work-detail .detailgrid strong {
  overflow-wrap: anywhere
}

.work-detail .detailgrid .bi-en {
  font-size: 10px
}

.work-detail .detailgrid strong .bi-en {
  font-size: 11px
}

@media(max-width:760px) {
  .work-gallery {
    padding: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px
  }

  .work-task {
    align-items: flex-start;
    flex-direction: column
  }

  .role-permission-grid {
    grid-template-columns: 1fr
  }

  .work-project-hero h1 {
    font-size: 23px
  }

  .work-project-hero h1 .bi-en {
    font-size: 15px
  }

  .work-source-strip {
    gap: 8px
  }

  .work-detail .detailgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media print {

  .sidebar,
  .topbar,
  .modulebar,
  .pagehead,
  .budget-projectbar,
  .work-source-strip button,
  .actions,
  .filters,
  .work-transitions,
  .note,
  #toast {
    display: none !important
  }

  .shell {
    display: block
  }

  .main {
    width: 100%;
    display: block
  }

  .content {
    padding: 0;
    max-width: none
  }

  .panel {
    border: 1px solid #ccc;
    break-inside: avoid;
    margin-bottom: 10px;
    box-shadow: none
  }

  .work-detail {
    border: 0
  }

  .work-gallery {
    grid-template-columns: repeat(3, 1fr)
  }

  body {
    background: white;
    color: black;
    font-size: 11px
  }

  .work-detail .detailgrid {
    grid-template-columns: repeat(4, 1fr)
  }
}

.translation-badge {
  display: block;
  font-size: 9px;
  font-weight: 400;
  color: #8a7951;
  margin-top: 5px
}

.translation-badge.reviewed {
  color: #31826b
}

.translation-badge.outdated,
.translation-badge.failed {
  color: #b06144
}

.translation-badge .bi-en {
  font-size: 8px
}

/* Keep bilingual account controls readable on small inspection screens. */
@media(max-width:700px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 16px
  }

  .topbar>.crumb {
    width: 100%;
    flex-wrap: wrap
  }

  .topbar>.user {
    width: 100%;
    display: flex;
    gap: 9px;
    justify-content: flex-start;
    flex-wrap: wrap
  }

  .topbar>.user .avatar {
    flex-shrink: 0
  }

  .user-identity {
    flex: 1;
    min-width: 90px
  }

  .topbar .link {
    font-size: 11px
  }

  .topbar .link .bi-en {
    font-size: 9px
  }

  .topbar .crumb .bi-en {
    white-space: normal
  }

  .modulebar {
    scroll-padding: 10px
  }
}

.formgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr))
}

.formgrid>* {
  min-width: 0;
  max-width: 100%
}

.formgrid label>input,
.formgrid label>select,
.formgrid label>textarea {
  width: 100%
}

.translation-review {
  max-width: 100%
}

.translation-review input {
  width: auto !important;
  flex: none
}

@media(max-width:600px) {
  .formgrid {
    grid-template-columns: minmax(0, 1fr);
    padding: 18px
  }

  .modalhead {
    padding: 16px 18px
  }

  .modalhead h2 {
    min-width: 0;
    overflow-wrap: anywhere
  }

  .modalhead button {
    flex: none
  }

  .translation-review {
    flex-wrap: wrap
  }
}

.nav-count {
  margin-left: auto;
  align-self: center;
  min-width: 28px;
  max-width: 72px;
  padding: 2px 8px;
  border-radius: 20px;
  background: #ffffff14;
  color: #bfd2e6;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere
}

.navbtn.active .nav-count {
  background: #a8caff24;
  color: white
}

.work-list-title {
  display: flex;
  align-items: center;
  gap: 12px
}

.work-total {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  padding: 2px 10px;
  background: #edf3fd;
  color: #345f9a;
  border-radius: 20px;
  font-size: 15px;
  font-variant-numeric: tabular-nums
}

.work-state-summary {
  padding: 18px 22px 0
}

.work-state-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px
}

.work-state {
  font-size: 12px;
  border-radius: 8px;
  padding: 9px 15px
}

.work-state.active {
  background: #edf3ff;
  border-color: #9bb7ed;
  color: #2559ad
}

.work-state .bi-en {
  font-size: 10px
}

@media(max-width:600px) {
  .work-state-summary {
    padding: 14px 14px 0
  }

  .work-state {
    padding: 7px 10px
  }

  .nav-count {
    min-width: 24px;
    font-size: 11px
  }
}

.workspace-notice {
  margin: 18px 24px 0;
  padding: 14px 18px;
  background: #fff6df;
  border: 1px solid #ead8ab;
  border-radius: 9px;
  color: #805f23;
  font-size: 13px
}

.workspace-notice .bi-en {
  color: #927a4d;
  font-size: 11px
}

@media(max-width:600px) {
  .workspace-notice {
    margin: 12px 12px 0;
    font-size: 11px
  }
}

.navbtn.work-nav>span:first-child {
  width: auto;
  flex: 1;
  min-width: 0;
  font-size: 13px
}

.navbtn.work-nav {
  align-items: center;
  gap: 10px
}

.navbtn.work-nav .nav-count {
  flex: none;
  min-width: 28px;
  width: auto
}

.navbtn.work-nav .bi-en {
  overflow-wrap: normal
}

.sidebar nav .navbtn.work-nav {
  padding: 7px 13px;
  margin: 2px 0
}

.sidebar nav .navbtn.work-nav .bi-en {
  font-size: 9px;
  line-height: 1.3;
  margin-top: 3px
}

/* One selected UI language; original business data and input values are preserved. */
html[data-ui-language="zh-CN"] .bilingual>.bi-en {
  display: none !important
}

html[data-ui-language="en"] .bilingual>span:first-child:not(.bi-en) {
  display: none !important
}

html[data-ui-language="en"] .bilingual>.bi-en {
  display: block !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
  opacity: 1 !important;
  margin: 0 !important;
  letter-spacing: inherit !important
}

.language-switch {
  display: inline-flex;
  flex: none
}

.language-switch select {
  font-size: 12px;
  padding: 7px 10px;
  min-width: 100px;
  background: #f7f9fc;
  color: #34516a;
  border: 1px solid #d9e3ed;
  border-radius: 8px
}

.language-corner {
  position: absolute;
  right: 24px;
  top: 20px;
  z-index: 5
}

.language-switch:focus-within {
  outline: 2px solid #a8c3ee;
  outline-offset: 2px
}

html[data-ui-language] .bilingual {
  white-space: normal
}

@media(max-width:700px) {
  .topbar>.user {
    flex-wrap: wrap
  }

  .language-switch {
    margin-left: auto;
    order: 5
  }

  .language-switch select {
    min-width: 96px;
    font-size: 11px
  }

  .language-corner {
    right: 16px;
    top: 12px
  }
}

.module-count {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border-radius: 20px;
  background: #f2c46d;
  color: #17334b;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums
}

.modulebar button.active .module-count {
  background: #fff1ca;
  color: #73500f
}

.currency-switch {
  display: inline-flex;
  flex: none
}

.currency-switch select {
  min-width: 90px;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid #d9e3ed;
  background: #f7f9fc;
  color: #34516a
}

.currency-notice {
  margin: 16px 34px 0;
  color: #647d91;
  font-size: 11px;
  line-height: 1.5
}

.currency-notice small {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  color: #889cab
}

.display-money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap
}

@media(max-width:700px) {
  .currency-switch {
    order: 6
  }

  .currency-switch select {
    font-size: 11px;
    min-width: 80px
  }

  .currency-notice {
    margin: 14px 16px 0
  }
}

.budget-stat strong .display-money {
  white-space: normal;
  overflow-wrap: anywhere
}

.stat .value {
  overflow-wrap: anywhere
}


.execution-table {
  min-width: 1350px;
  white-space: normal
}

.execution-table td, .execution-table th {
  overflow-wrap: anywhere;
  vertical-align: top;
  line-height: 1.6
}

.execution-table td:first-child { min-width: 220px; max-width: 300px }
.execution-table td:last-child { min-width: 280px }
.execution-table .num { white-space: nowrap }
.execution-details { margin-top: 10px; font-size: 11px }
.execution-details summary { cursor: pointer; color: #2866bd }
.execution-order { padding: 12px 0; border-bottom: 1px solid #e1e8ef; overflow-wrap: anywhere }
.execution-order .link { margin-top: 6px }


/* A visible menu scrollbar, independent of macOS auto-hidden scrollbars. */
.module-navigation {
  position: sticky;
  top: 8px;
  z-index: 5;
  margin: 14px 24px 0
}
.module-navigation .modulebar {
  position: static;
  margin: 0;
  scrollbar-width: none
}
.module-navigation .modulebar::-webkit-scrollbar { display: none }
.module-scroll {
  display: block;
  margin: 4px 10px 0;
  padding: 0;
  line-height: 1;
  cursor: pointer
}
.module-scroll[hidden] { display: none }
.module-scroll input {
  display: block;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 18px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: #d6e1ec;
  cursor: ew-resize;
  accent-color: #477dab
}
.module-scroll input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 72px;
  height: 14px;
  border-radius: 8px;
  background: #477dab;
  border: 1px solid #2f628f
}
.module-scroll input::-moz-range-thumb {
  width: 72px;
  height: 14px;
  border-radius: 8px;
  background: #477dab;
  border: 1px solid #2f628f
}
.module-scroll input:focus-visible { outline: 2px solid #2866bd; outline-offset: 3px }
@media(max-width:1100px) { .module-navigation { margin: 12px 20px 0 } }
@media(max-width:760px) { .module-navigation { margin: 10px 12px 0; top: 4px } }
@media print { .module-navigation { display: none !important } }


.dossier-title { display:flex; align-items:flex-start; justify-content:space-between; gap:20px }
.dossier-title h1 { overflow-wrap:anywhere; margin:8px 0 16px }
.dossier-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:20px 0 }
.dossier-summary .dossier-field { background:#fff; border:1px solid #e1e8ef; border-radius:10px; padding:22px }
.dossier-field { min-width:0; color:#728695; font-size:12px; line-height:1.6 }
.dossier-field strong { display:block; margin-top:8px; color:#213e51; font-size:17px; overflow-wrap:anywhere }
.dossier-summary .dossier-field strong { font-size:21px }
.dossier-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px }
.dossier-highlights { margin-top:20px; border-left:3px solid #6d9fc6; padding-left:16px }
.dossier-actions { margin-top:24px; flex-wrap:wrap }
.dossier-specifications { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px }
.dossier-specifications .panel { margin-bottom:0 }
.dossier-updated { padding:12px 0; font-size:11px; color:#8293a2; line-height:1.6 }
.scope-current { max-height:280px }
@media(max-width:1100px) { .dossier-summary { grid-template-columns:repeat(2,minmax(0,1fr)) } }
@media(max-width:650px) {
 .dossier-fields,.dossier-specifications { grid-template-columns:1fr }
 .dossier-summary { grid-template-columns:1fr }
 .dossier-title { flex-wrap:wrap }
 .dossier-title h1 { font-size:24px }
}


.vessel-view-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px }
.vessel-view { margin:0; border:1px solid #e0e8ef; border-radius:8px; overflow:hidden; min-width:0 }
.vessel-view img { width:100%; height:200px; object-fit:contain; background:#f3f6fa; display:block }
.vessel-view-file { min-height:120px; display:grid; place-items:center; background:#eef3f8 }
.vessel-view figcaption { padding:14px; font-size:12px; overflow-wrap:anywhere; line-height:1.8 }
.drawing-reference { display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:12px 0; border-bottom:1px solid #e1e8ef }
.drawing-reference-options { max-height:380px; overflow:auto }
.drawing-reference-options label { display:flex; flex-direction:row; align-items:center; gap:10px; padding:8px }
@media(max-width:600px) { .vessel-view-grid { grid-template-columns:minmax(0,1fr) } }

/* PR paper form editor and signed-copy archive. */
.pr-item-editor{border:1px solid #dbe5ee;background:#f8fafc;border-radius:12px;padding:20px;margin-bottom:18px}.pr-row-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.pr-row-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:14px 0}.pr-item-editor label{display:block}.pr-signed-files{display:flex;gap:18px;flex-wrap:wrap}.pr-signed-files a{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid #dbe5ee;border-radius:12px;max-width:280px;overflow-wrap:anywhere}.pr-signed-files img{width:100%;max-height:260px;object-fit:contain}.actions a.button{display:inline-flex;align-items:center;padding:12px 18px;border:1px solid #dbe5ee;border-radius:8px;text-decoration:none;color:inherit;background:#fff}@media(max-width:900px){.pr-row-grid{grid-template-columns:1fr}}

/* Personal workspace groups assigned tasks and project shortcuts. */
.workspace-intro{padding:28px 32px;border-radius:18px;margin-bottom:24px;background:linear-gradient(115deg,#142f43,#244b67);color:#fff}.workspace-intro h2{font-size:28px;margin:10px 0}.workspace-intro p{max-width:1000px;line-height:1.7;margin:10px 0}.workspace-intro .sub{color:#c8d9e6}.workspace-intro .eyebrow{color:#9fd8df}.workspace-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:24px}.workspace-stat{text-align:left;background:#fff;border:1px solid #dce5ec;border-radius:14px;padding:22px;display:flex;flex-direction:column;align-items:flex-start;gap:12px;color:#294456}.workspace-stat strong{font-size:34px;color:#173c59}.workspace-stat small{font-size:13px;line-height:1.5;color:#708596}.workspace-stat:hover{border-color:#477fc0}.workspace-task-main{min-width:0;overflow-wrap:anywhere}.workspace-task h3{margin:10px 0;font-size:17px}.workspace-task-tags{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:13px;color:#708596}.workspace-task .sub{margin-top:8px}.workspace-projects{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:16px;padding:22px}.workspace-project{border:1px solid #e3eaf0;border-radius:12px;padding:20px;overflow-wrap:anywhere}.workspace-project h3{margin:10px 0}.workspace-project button{margin-top:10px}@media(max-width:800px){.workspace-stats{grid-template-columns:1fr}.workspace-intro{padding:22px}.workspace-intro h2{font-size:23px}}
