.os-page {
  --os-grid-line: #d9deda;
  --os-grid-line-strong: #c6cec8;
  --os-header-bg: #eef0ee;
  --os-row-odd: #ffffff;
  --os-row-even: #f5f6f5;
  --os-row-hover: #e3f3e7;
  --os-row-active: #d8ecd9;
  --os-row-clicked: #cfe6d4;
  --os-hover-line: rgba(93, 153, 104, 0.42);
  --os-hover-strong: #b5d9ba;
  --os-control-hover: rgba(227, 243, 231, 0.86);
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(250, 250, 250, 0.98), rgba(241, 241, 241, 0.9)),
    var(--paper);
}

.os-page::before {
  display: none;
}

.os-page section {
  padding: 0;
}

.os-root {
  min-height: 100vh;
  padding: clamp(10px, 1.4vw, 22px);
}

.os-login {
  display: grid;
  align-content: center;
  width: min(420px, calc(100vw - 40px));
  min-height: 100vh;
  margin: 0 auto;
  color: var(--ink);
}

.os-login-mark,
.os-topbar span,
.os-panel-head span,
.os-summary span,
.os-client-line span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.os-login h1 {
  margin: 18px 0 8px;
  color: var(--strong-ink);
  font-size: 38px;
  font-weight: 360;
  letter-spacing: 0;
}

.os-login p {
  margin: 0 0 34px;
  color: var(--muted);
  font-size: 14px;
}

.os-login-form label,
.os-detail-form label {
  display: grid;
  gap: 10px;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 560;
}

.os-login-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid rgba(48, 48, 48, 0.34);
}

.os-login-line input,
.os-login-line button,
.os-detail-form input,
.os-detail-form select,
.os-detail-form textarea {
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--strong-ink);
  font: inherit;
  outline: none;
}

.os-login-line input {
  padding: 15px 0;
  font-size: 18px;
}

.os-login-line button,
.os-topbar button,
.os-actions button {
  cursor: pointer;
  color: var(--strong-ink);
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 620;
  transition:
    color 120ms ease,
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.os-login-line button {
  display: inline-grid;
  min-width: 64px;
  height: 100%;
  place-items: center;
  align-self: stretch;
  padding: 0 12px;
  line-height: 1;
}

.os-remember-pin {
  display: inline-flex !important;
  align-items: center;
  gap: 7px !important;
  width: fit-content;
  margin-top: 12px;
  color: var(--muted) !important;
  cursor: pointer;
  font-size: 12px !important;
  font-weight: 520 !important;
}

.os-remember-pin input {
  width: 13px;
  height: 13px;
  margin: 0;
  accent-color: #303030;
}

.os-remember-pin span {
  line-height: 1;
}

.os-login-line button:hover,
.os-login-line button:focus-visible,
.os-topbar button:hover,
.os-topbar button:focus-visible {
  color: #2f7d3b;
  background: var(--os-control-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
  text-decoration: none;
  outline: none;
}

.os-form-note {
  min-height: 20px;
  margin-top: 14px !important;
  color: var(--muted) !important;
  font-size: 12px !important;
}

.os-form-note.is-error,
.os-actions span.is-error {
  color: var(--error) !important;
}

.os-app {
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0 auto;
}

.os-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
}

.os-topbar > div,
.os-topbar nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.os-brand {
  color: var(--strong-ink);
  font-size: 18px;
  font-weight: 360;
  letter-spacing: 0.28em;
}

.os-topbar button {
  color: var(--muted);
}

.os-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--os-grid-line);
  border-left: 1px solid var(--os-grid-line);
}

.os-summary article {
  min-height: 64px;
  padding: 8px 12px;
  border-right: 1px solid var(--os-grid-line);
  border-bottom: 1px solid var(--os-grid-line);
  background: rgba(255, 255, 255, 0.42);
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease,
    color 120ms ease;
}

.os-summary article[data-scroll-target] {
  cursor: pointer;
}

.os-summary article[data-scroll-target]:hover,
.os-summary article[data-scroll-target]:focus-visible {
  background: var(--os-row-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
  outline: none;
}

.os-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--strong-ink);
  font-size: 22px;
  font-weight: 380;
}

.os-summary p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.os-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.48fr);
  grid-template-areas:
    "operation side"
    "inquiry side"
    "detail side";
  gap: 12px;
  align-items: start;
}

.os-operation-panel {
  grid-area: operation;
}

.os-inquiry-list {
  grid-area: inquiry;
}

.os-detail {
  grid-area: detail;
}

.os-side-stack {
  grid-area: side;
}

.os-panel {
  min-width: 0;
  border-top: 1px solid var(--os-grid-line-strong);
}

.os-panel.is-panel-flash {
  animation: os-panel-flash 900ms ease;
}

@keyframes os-panel-flash {
  0% {
    box-shadow: inset 0 2px 0 rgba(93, 153, 104, 0.72);
  }
  100% {
    box-shadow: inset 0 2px 0 rgba(93, 153, 104, 0);
  }
}

.os-workbench > *,
.os-side-stack,
.os-side-stack section {
  min-width: 0;
}

.os-side-stack.os-panel {
  border-top: 0;
}

.os-side-stack section {
  border-top: 1px solid var(--os-grid-line-strong);
}

.os-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0 8px;
}

.os-panel-head h2 {
  margin: 4px 0 0;
  color: var(--strong-ink);
  font-size: 19px;
  font-weight: 390;
}

.os-panel-head small {
  color: var(--faint-ink);
  font-size: 11px;
  white-space: nowrap;
}

.os-sheet-wrap {
  max-width: 100%;
  overflow-x: hidden;
  border: 1px solid var(--os-grid-line);
  border-right: 0;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.38);
}

.os-sheet-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  color: var(--ink);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

.os-inquiry-table {
  width: 100%;
}

.os-sheet-table th,
.os-sheet-table td {
  overflow: hidden;
  height: 28px;
  padding: 4px 5px;
  border-right: 1px solid var(--os-grid-line);
  border-bottom: 1px solid var(--os-grid-line);
  text-align: left;
  line-height: 1.18;
  overflow-wrap: anywhere;
  text-overflow: clip;
  white-space: normal;
  vertical-align: middle;
  word-break: keep-all;
}

.os-sheet-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--os-header-bg);
  color: var(--soft-ink);
  font-size: 9.5px;
  font-weight: 620;
}

.os-sheet-table tbody tr {
  cursor: default;
  transition:
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.os-sheet-table tbody tr:nth-child(odd) td {
  background: var(--os-row-odd);
}

.os-sheet-table tbody tr:nth-child(even) td {
  background: var(--os-row-even);
}

.os-sheet-table tbody tr[data-row] {
  cursor: pointer;
}

.os-sheet-table tbody tr:hover td {
  background: var(--os-row-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
}

.os-sheet-table tbody tr.is-active td {
  background: var(--os-row-active);
  color: var(--strong-ink);
}

.os-sheet-table tbody tr.is-clicked td {
  background: var(--os-row-clicked);
}

.os-table-link {
  color: var(--strong-ink);
  font-weight: 560;
  text-decoration: none;
  transition:
    color 120ms ease,
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.os-table-link:hover {
  color: #2f7d3b;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.os-sheet-table .os-row-head {
  width: 28px;
  min-width: 0;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--os-header-bg);
  color: var(--faint-ink);
  text-align: center;
}

.os-sheet-table th.os-row-head {
  z-index: 3;
}

.os-inquiry-table th:nth-child(2),
.os-inquiry-table td:nth-child(2) {
  width: 9%;
}

.os-inquiry-table th:nth-child(3),
.os-inquiry-table td:nth-child(3) {
  width: 8%;
}

.os-inquiry-table th:nth-child(4),
.os-inquiry-table td:nth-child(4) {
  width: 9%;
}

.os-inquiry-table th:nth-child(5),
.os-inquiry-table td:nth-child(5) {
  width: 9%;
}

.os-inquiry-table th:nth-child(6),
.os-inquiry-table td:nth-child(6) {
  width: 8%;
}

.os-inquiry-table th:nth-child(7),
.os-inquiry-table td:nth-child(7) {
  width: 7%;
}

.os-inquiry-table th:nth-child(8),
.os-inquiry-table td:nth-child(8) {
  width: 16%;
}

.os-inquiry-table th:nth-child(9),
.os-inquiry-table td:nth-child(9) {
  width: 34%;
}

.os-operation-table {
  width: 100%;
  min-width: 0;
}

.os-operation-context {
  min-height: 24px;
  padding: 5px 7px;
  border: 1px solid var(--os-grid-line);
  border-bottom: 0;
  background: var(--os-row-odd);
  color: var(--strong-ink);
  font-size: 11px;
  font-weight: 620;
}

.os-operation-table th:nth-child(2),
.os-operation-table td:nth-child(2) {
  width: 16%;
}

.os-operation-table th:nth-child(3),
.os-operation-table td:nth-child(3) {
  width: 7%;
}

.os-operation-table th:nth-child(4),
.os-operation-table td:nth-child(4) {
  width: 14%;
}

.os-operation-table th:nth-child(5),
.os-operation-table td:nth-child(5) {
  width: 14%;
}

.os-operation-table th:nth-child(6),
.os-operation-table td:nth-child(6) {
  width: 10%;
}

.os-operation-table th:nth-child(7),
.os-operation-table td:nth-child(7) {
  width: 8%;
}

.os-operation-table th:nth-child(8),
.os-operation-table td:nth-child(8) {
  width: 31%;
}

.os-operation-table.is-single-site th:nth-child(2),
.os-operation-table.is-single-site td:nth-child(2) {
  width: 7%;
}

.os-operation-table.is-single-site th:nth-child(3),
.os-operation-table.is-single-site td:nth-child(3) {
  width: 15%;
}

.os-operation-table.is-single-site th:nth-child(4),
.os-operation-table.is-single-site td:nth-child(4) {
  width: 16%;
}

.os-operation-table.is-single-site th:nth-child(5),
.os-operation-table.is-single-site td:nth-child(5) {
  width: 12%;
}

.os-operation-table.is-single-site th:nth-child(6),
.os-operation-table.is-single-site td:nth-child(6) {
  width: 8%;
}

.os-operation-table.is-single-site th:nth-child(7),
.os-operation-table.is-single-site td:nth-child(7) {
  width: 42%;
}

.os-operation-table tr.is-past td,
.os-operation-table tr.is-late td {
  background: rgba(225, 227, 229, 0.46);
  color: var(--soft-ink);
}

.os-operation-table tr.is-holiday td {
  background: rgba(255, 232, 232, 0.58);
}

.os-operation-table tr.is-today td {
  background: #e3e5e7;
  box-shadow: none;
  color: var(--strong-ink);
}

.os-operation-table tr.is-checked td {
  color: var(--strong-ink);
}

.os-operation-table tr.is-problem td {
  background: rgba(255, 232, 232, 0.78);
  color: #8c2f2f;
}

.os-operation-table tbody tr:hover td {
  background: var(--os-row-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
  color: var(--strong-ink);
}

.os-operation-table tbody tr.is-checked:hover td {
  background: var(--os-row-active);
}

.os-operation-table tbody tr.is-problem:hover td {
  background: #ffd9d9;
  color: #8c2f2f;
}

.os-operation-table tbody tr.is-clicked td {
  background: var(--os-row-clicked);
  color: var(--strong-ink);
}

.os-operation-table tbody tr.is-clicked.is-checked td {
  background: var(--os-row-clicked);
}

.os-operation-table tbody tr.is-clicked.is-problem td {
  background: #ffd0d0;
  color: #8c2f2f;
}

.os-inline-select {
  width: 100%;
  min-width: 0;
  height: 22px;
  border: 1px solid var(--os-grid-line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--strong-ink);
  font: inherit;
  font-size: 11px;
  line-height: 1;
  outline: none;
  padding: 0 4px;
  transition:
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.os-operation-table .os-inline-select {
  background: #fff;
  font-weight: 560;
}

.os-status-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.os-link-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.os-status-mark {
  display: inline-grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
}

.os-status-mark.is-ok {
  background: #4f9b57;
}

.os-status-mark.is-danger {
  background: #c84b4b;
}

.os-inline-check {
  width: 20px;
  height: 22px;
  border: 1px solid var(--os-grid-line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.52);
  color: var(--strong-ink);
  font: inherit;
  font-size: 10px;
  font-weight: 560;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.os-inline-check:not(:disabled):hover,
.os-inline-check:not(:disabled):focus-visible {
  border-color: var(--os-hover-strong);
  background: var(--os-control-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
  outline: none;
}

.os-inline-check:disabled {
  cursor: default;
  color: var(--faint-ink);
  background: rgba(238, 239, 240, 0.62);
}

.os-inline-button {
  width: 100%;
  min-width: 0;
  height: 22px;
  border: 1px solid var(--os-grid-line-strong);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.52);
  color: var(--strong-ink);
  font: inherit;
  font-size: 10px;
  font-weight: 560;
  cursor: pointer;
}

.os-inline-button:hover,
.os-inline-button:focus-visible {
  border-color: var(--os-hover-strong);
  background: var(--os-control-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
  outline: none;
}

.os-inline-button:disabled {
  cursor: default;
  color: var(--faint-ink);
  background: rgba(238, 239, 240, 0.62);
}

.os-inline-input {
  width: 100%;
  min-width: 0;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--strong-ink);
  font: inherit;
  font-size: 10.5px;
  outline: none;
  transition:
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.os-inline-select:hover,
.os-inline-input:hover,
.os-inline-select:focus,
.os-inline-input:focus {
  background: var(--os-control-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
}

.os-link-cell .os-table-link {
  font-size: 10px;
  white-space: nowrap;
}

.os-project-color {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.os-project-color span {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(40, 40, 40, 0.18);
  border-radius: 50%;
  background: var(--project-color, #616161);
}

.os-empty {
  display: grid;
  min-height: 360px;
  place-items: center;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
}

.os-detail-form {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}

.os-client-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.os-client-line strong {
  display: block;
  margin-top: 6px;
  color: var(--strong-ink);
  font-size: 22px;
  font-weight: 360;
  line-height: 1.1;
}

.os-client-line a {
  padding-top: 26px;
  color: var(--muted);
  font-size: 12px;
}

.os-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--os-grid-line);
  border-left: 1px solid var(--os-grid-line);
}

.os-detail-grid div {
  min-width: 0;
  padding: 7px 9px;
  border-right: 1px solid var(--os-grid-line);
  border-bottom: 1px solid var(--os-grid-line);
  background: rgba(255, 255, 255, 0.38);
  transition:
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.os-detail-grid div:hover {
  background: var(--os-row-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
}

.os-detail-grid dt {
  color: var(--faint-ink);
  font-size: 11px;
}

.os-detail-grid dd {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--strong-ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-detail-form textarea,
.os-detail-form input,
.os-detail-form select {
  width: 100%;
  border: 1px solid var(--os-grid-line);
  border-radius: 0;
  color: var(--strong-ink);
  font-size: 14px;
  background: rgba(255, 255, 255, 0.34);
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    box-shadow 120ms ease;
}

.os-detail-form textarea:hover,
.os-detail-form input:hover,
.os-detail-form select:hover,
.os-detail-form textarea:focus,
.os-detail-form input:focus,
.os-detail-form select:focus {
  border-color: var(--os-hover-strong);
  background: var(--os-control-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
  outline: none;
}

.os-detail-form textarea {
  min-height: 66px;
  padding: 8px 9px;
  resize: vertical;
  line-height: 1.6;
}

.os-detail-form input,
.os-detail-form select {
  height: 34px;
  padding: 0 9px;
}

.os-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.os-form-grid label {
  padding: 7px 9px;
  border-top: 1px solid var(--os-grid-line);
  border-left: 1px solid var(--os-grid-line);
}

.os-form-grid label:last-child {
  border-right: 1px solid var(--os-grid-line);
}

.os-detail-form > label {
  padding: 7px 9px;
  border: 1px solid var(--os-grid-line);
  background: rgba(255, 255, 255, 0.26);
}

.os-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 40px;
}

.os-actions button {
  min-width: 88px;
  height: 36px;
  border: 1px solid var(--os-grid-line-strong);
  background: rgba(236, 238, 240, 0.68);
}

.os-actions button:hover,
.os-actions button:focus-visible {
  border-color: var(--os-hover-strong);
  background: var(--os-control-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
  outline: none;
}

.os-actions span {
  color: var(--muted);
  font-size: 12px;
}

.os-side-stack {
  display: grid;
  gap: 12px;
}

.os-estimate-panel {
  border-top: 1px solid var(--os-grid-line-strong);
}

.os-estimate-layout {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.os-estimate-summary {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 11px 10px;
  border: 1px solid var(--os-grid-line);
  background: rgba(255, 255, 255, 0.38);
}

.os-estimate-summary span {
  color: var(--faint-ink);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.os-estimate-summary strong {
  color: var(--strong-ink);
  font-size: 15px;
  font-weight: 420;
}

.os-estimate-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
  word-break: keep-all;
}

.os-estimate-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--os-grid-line);
  border-left: 1px solid var(--os-grid-line);
}

.os-estimate-actions button {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-right: 1px solid var(--os-grid-line);
  border-bottom: 1px solid var(--os-grid-line);
  background: rgba(255, 255, 255, 0.32);
  color: var(--strong-ink);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
}

.os-estimate-actions button:hover,
.os-estimate-actions button:focus-visible {
  background: var(--os-control-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
  outline: none;
}

.os-mobile-tabs {
  display: none;
}

.os-gantt-panel {
  overflow: hidden;
}

.os-gantt-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.os-gantt-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  min-width: 0;
}

.os-gantt-chip-wrap {
  position: relative;
  display: inline-flex;
  min-width: 0;
}

.os-gantt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  min-height: 22px;
  padding: 0 6px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--strong-ink);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 560;
}

.os-gantt-chip:hover,
.os-gantt-chip:focus-visible,
.os-gantt-chip-wrap.is-open .os-gantt-chip {
  border-color: var(--os-hover-strong);
  background: var(--os-control-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
  outline: none;
}

.os-gantt-chip small {
  color: var(--faint-ink);
  font-size: 9px;
  font-weight: 520;
}

.os-gantt-chip::before,
.os-gantt-name-line::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--project-color, #626262);
}

.os-color-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 20;
  display: grid;
  width: 222px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 7px;
  border: 1px solid var(--os-grid-line-strong);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.os-color-popover[hidden] {
  display: none;
}

.os-color-swatch {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--strong-ink);
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  text-align: left;
}

.os-color-swatch:hover,
.os-color-swatch:focus-visible,
.os-color-swatch.is-selected {
  border-color: var(--os-hover-strong);
  background: var(--os-control-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
  outline: none;
}

.os-color-swatch span {
  width: 10px;
  height: 10px;
  border: 1px solid rgba(40, 40, 40, 0.18);
  border-radius: 50%;
  background: var(--swatch-color, #616161);
}

.os-color-swatch strong {
  overflow: hidden;
  font-size: inherit;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-gantt-meta strong,
.os-gantt-meta button {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-gantt-nav {
  display: inline-grid;
  grid-template-columns: 24px minmax(58px, auto) 24px;
  align-items: center;
  gap: 3px;
  color: var(--strong-ink);
}

.os-gantt-nav strong {
  display: grid;
  place-items: center;
  min-height: 22px;
  padding-inline: 6px;
  border-block: 1px solid var(--os-grid-line);
  font-size: 12px;
  font-weight: 680;
}

.os-gantt-nav button {
  display: grid;
  width: 24px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--os-grid-line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--strong-ink);
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  line-height: 1;
}

.os-gantt-nav button:hover,
.os-gantt-nav button:focus-visible {
  border-color: var(--os-hover-strong);
  background: var(--os-control-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
  outline: none;
}

.os-gantt-nav button:disabled {
  opacity: 0.32;
  cursor: default;
}

.os-gantt-nav button:disabled:hover {
  border-color: var(--os-grid-line-strong);
  background: #fff;
  box-shadow: none;
}

.os-gantt-source {
  margin-left: auto;
}

.os-gantt-wrap {
  overflow-x: hidden;
  border: 1px solid var(--os-grid-line);
  background: rgba(255, 255, 255, 0.36);
}

.os-gantt-table {
  --gantt-name-width: 104px;
  --gantt-day-width: minmax(0, 1fr);
  width: 100%;
  min-width: 100%;
  color: var(--ink);
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
}

.os-gantt-row {
  display: grid;
  position: relative;
  min-height: 20px;
  transition:
    background-color 120ms ease,
    box-shadow 120ms ease;
}

.os-gantt-header {
  min-height: 22px;
}

.os-gantt-head,
.os-gantt-label,
.os-gantt-cell {
  border-right: 1px solid rgba(217, 222, 218, 0.58);
  border-bottom: 1px solid rgba(217, 222, 218, 0.74);
}

.os-gantt-head {
  display: grid;
  place-items: center;
  min-width: 0;
  background: var(--os-header-bg);
  color: var(--soft-ink);
  font-size: 8px;
  font-weight: 620;
  overflow: hidden;
  white-space: nowrap;
}

.os-gantt-label {
  display: grid;
  align-content: center;
  gap: 0;
  min-width: 0;
  padding: 2px 5px;
  background: rgba(248, 248, 248, 0.94);
  line-height: 1.08;
}

.os-gantt-row:nth-child(even):not(.os-gantt-header) .os-gantt-label,
.os-gantt-row:nth-child(even):not(.os-gantt-header) .os-gantt-cell:not(.is-weekend):not(.is-holiday):not(.is-past):not(.is-today) {
  background-color: var(--os-row-odd);
}

.os-gantt-row:nth-child(odd):not(.os-gantt-header) .os-gantt-label,
.os-gantt-row:nth-child(odd):not(.os-gantt-header) .os-gantt-cell:not(.is-weekend):not(.is-holiday):not(.is-past):not(.is-today) {
  background-color: var(--os-row-even);
}

.os-gantt-row:not(.os-gantt-header) {
  cursor: pointer;
}

.os-gantt-row:not(.os-gantt-header):hover .os-gantt-label,
.os-gantt-row:not(.os-gantt-header):hover .os-gantt-cell:not(.is-weekend):not(.is-holiday):not(.is-past):not(.is-today) {
  background-color: var(--os-row-hover);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
}

.os-gantt-row:not(.os-gantt-header).is-clicked .os-gantt-label,
.os-gantt-row:not(.os-gantt-header).is-clicked .os-gantt-cell:not(.is-weekend):not(.is-holiday):not(.is-past):not(.is-today) {
  background-color: var(--os-row-clicked);
  box-shadow: inset 0 0 0 1px var(--os-hover-line);
}

.os-gantt-label strong,
.os-gantt-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-gantt-label strong {
  color: var(--strong-ink);
  font-weight: 620;
}

.os-gantt-name-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.os-gantt-name-line span {
  min-width: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.os-gantt-label span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.08;
}

.os-gantt-sticky {
  position: sticky;
  left: 0;
  z-index: 4;
}

.os-gantt-timeline {
  display: grid;
  position: relative;
  grid-template-columns: repeat(var(--gantt-days, 31), var(--gantt-day-width));
  grid-template-rows: minmax(20px, 1fr);
  min-width: 0;
}

.os-gantt-header-timeline {
  grid-template-rows: 22px;
}

.os-gantt-day {
  min-width: 0;
}

.os-gantt-month {
  min-width: 0;
  color: var(--faint-ink);
}

.os-gantt-cell {
  grid-row: 1;
  min-height: 20px;
}

.os-gantt-day.is-past,
.os-gantt-month.is-past,
.os-gantt-cell.is-past {
  background: rgba(225, 227, 229, 0.52);
  color: var(--faint-ink);
}

.os-gantt-day.is-weekend,
.os-gantt-month.is-weekend,
.os-gantt-cell.is-weekend,
.os-gantt-day.is-holiday,
.os-gantt-month.is-holiday,
.os-gantt-cell.is-holiday {
  background: rgba(255, 232, 232, 0.68);
  color: #8a4747;
}

.os-gantt-day.is-today,
.os-gantt-month.is-today,
.os-gantt-cell.is-today {
  background: #d7dce0;
  box-shadow: inset 0 0 0 1px rgba(80, 82, 84, 0.18);
  color: var(--strong-ink);
  font-weight: 740;
}

.os-gantt-fill {
  position: absolute;
  inset-block: 0;
  left: calc(var(--gantt-start, 0) * (100% / var(--gantt-days, 90)));
  width: calc(var(--gantt-span, 1) * (100% / var(--gantt-days, 90)));
  z-index: 2;
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 0 3px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 0;
  background: var(--cell-color, rgba(90, 90, 90, 0.9));
  color: #fff;
  overflow: hidden;
  transition:
    filter 120ms ease,
    transform 120ms ease;
}

.os-gantt-row:not(.os-gantt-header):hover .os-gantt-fill,
.os-gantt-row.is-clicked .os-gantt-fill {
  filter: brightness(1.06);
}

.os-gantt-fill.is-active,
.os-gantt-fill.is-current {
  background: rgba(69, 128, 76, 0.92);
}

.os-gantt-fill.is-done {
  background: rgba(116, 124, 124, 0.72);
}

.os-gantt-fill span {
  overflow: hidden;
  max-width: 100%;
  padding-inline: 1px;
  font-size: 9px;
  font-weight: 620;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.os-gantt-empty {
  min-height: 120px;
}

.os-gantt-empty-month {
  display: grid;
  min-height: 44px;
  place-items: center;
  border-top: 1px solid var(--os-grid-line);
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 1180px) {
  .os-gantt-wrap {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
  }

  .os-gantt-table {
    --gantt-name-width: 104px;
    --gantt-day-width: 30px;
    width: max-content;
    min-width: max(100%, calc(var(--gantt-name-width) + (var(--gantt-days, 31) * var(--gantt-day-width))));
  }

  .os-gantt-timeline {
    grid-template-columns: repeat(var(--gantt-days, 31), var(--gantt-day-width));
    grid-template-rows: minmax(22px, 1fr);
    min-width: calc(var(--gantt-days, 31) * var(--gantt-day-width));
  }

  .os-gantt-month {
    scroll-snap-align: start;
  }
}

@media (max-width: 1080px) {
  .os-workbench {
    grid-template-columns: 1fr;
    grid-template-areas:
      "operation"
      "inquiry"
      "detail"
      "side";
  }

  .os-inquiry-list {
    grid-column: auto;
  }

  .os-side-stack {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .os-workbench {
    grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.42fr);
    grid-template-areas:
      "operation side"
      "inquiry detail";
  }

  .os-side-stack {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .os-root {
    padding: 10px 12px 78px;
  }

  .os-app {
    gap: 10px;
  }

  .os-topbar {
    min-height: 42px;
    align-items: center;
    gap: 10px;
  }

  .os-topbar > div,
  .os-topbar nav {
    align-items: center;
    gap: 10px;
  }

  .os-brand {
    font-size: 14px;
    letter-spacing: 0.22em;
  }

  .os-login-mark,
  .os-topbar span,
  .os-panel-head span,
  .os-summary span,
  .os-client-line span {
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .os-topbar button,
  .os-actions button {
    font-size: 10px;
  }

  .os-summary,
  .os-workbench,
  .os-side-stack {
    grid-template-columns: 1fr;
  }

  .os-workbench {
    grid-template-areas:
      "operation"
      "inquiry"
      "detail"
      "side";
  }

  .os-inquiry-list,
  .os-side-stack {
    grid-column: auto;
  }

  .os-summary article {
    min-height: 46px;
    padding: 5px 5px;
  }

  .os-summary strong {
    margin-top: 2px;
    font-size: 16px;
  }

  .os-summary p {
    overflow: hidden;
    font-size: 8px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .os-workbench,
  .os-side-stack,
  .os-detail-form {
    gap: 8px;
  }

  .os-panel-head {
    gap: 8px;
    padding: 9px 0 6px;
  }

  .os-panel-head h2 {
    margin-top: 3px;
    font-size: 15px;
  }

  .os-panel-head small {
    font-size: 9px;
  }

  .os-sheet-wrap {
    margin-inline: -1px;
  }

  .os-sheet-table {
    width: 100%;
    min-width: 0;
    font-size: 8.2px;
  }

  .os-inquiry-table {
    width: 100%;
    min-width: 0;
  }

  .os-sheet-table th,
  .os-sheet-table td {
    height: 23px;
    padding: 3px 2px;
    line-height: 1.12;
  }

  .os-sheet-table th {
    font-size: 8px;
  }

  .os-operation-table {
    font-size: 7.8px;
  }

  .os-operation-table th:nth-child(2),
  .os-operation-table td:nth-child(2) {
    width: 15%;
  }

  .os-operation-table th:nth-child(3),
  .os-operation-table td:nth-child(3) {
    width: 7%;
  }

  .os-operation-table th:nth-child(4),
  .os-operation-table td:nth-child(4) {
    width: 14%;
  }

  .os-operation-table th:nth-child(5),
  .os-operation-table td:nth-child(5) {
    width: 14%;
  }

  .os-operation-table th:nth-child(6),
  .os-operation-table td:nth-child(6) {
    width: 11%;
  }

  .os-operation-table th:nth-child(7),
  .os-operation-table td:nth-child(7) {
    width: 8%;
  }

  .os-operation-table th:nth-child(8),
  .os-operation-table td:nth-child(8) {
    width: 31%;
  }

  .os-operation-table.is-single-site th:nth-child(2),
  .os-operation-table.is-single-site td:nth-child(2) {
    width: 6%;
  }

  .os-operation-table.is-single-site th:nth-child(3),
  .os-operation-table.is-single-site td:nth-child(3) {
    width: 15%;
  }

  .os-operation-table.is-single-site th:nth-child(4),
  .os-operation-table.is-single-site td:nth-child(4) {
    width: 16%;
  }

  .os-operation-table.is-single-site th:nth-child(5),
  .os-operation-table.is-single-site td:nth-child(5) {
    width: 12%;
  }

  .os-operation-table.is-single-site th:nth-child(6),
  .os-operation-table.is-single-site td:nth-child(6) {
    width: 8%;
  }

  .os-operation-table.is-single-site th:nth-child(7),
  .os-operation-table.is-single-site td:nth-child(7) {
    width: 42%;
  }

  .os-inline-select,
  .os-inline-input {
    height: 19px;
    font-size: 7.8px;
  }

  .os-inline-select {
    padding: 0 3px;
  }

  .os-status-cell,
  .os-link-cell {
    gap: 1px;
  }

  .os-inline-check {
    width: 16px;
    height: 18px;
    font-size: 8px;
  }

  .os-inline-button {
    height: 18px;
    font-size: 7.5px;
  }

  .os-link-cell .os-table-link {
    font-size: 7.5px;
  }

  .os-gantt-meta {
    margin-bottom: 6px;
    font-size: 9px;
  }

  .os-gantt-meta strong {
    font-size: 11px;
  }

  .os-gantt-chip {
    min-height: 20px;
    padding-inline: 4px;
    font-size: 10px;
  }

  .os-gantt-chip small {
    font-size: 8px;
  }

  .os-color-popover {
    width: min(220px, calc(100vw - 28px));
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .os-gantt-row {
    min-height: 22px;
  }

  .os-gantt-header {
    min-height: 24px;
  }

  .os-gantt-table {
    --gantt-name-width: 84px;
    --gantt-day-width: 30px;
    font-size: 9px;
    width: max-content;
    min-width: max(100%, calc(var(--gantt-name-width) + (var(--gantt-days, 31) * var(--gantt-day-width))));
  }

  .os-gantt-timeline {
    grid-template-columns: repeat(var(--gantt-days, 31), var(--gantt-day-width));
    min-width: calc(var(--gantt-days, 31) * var(--gantt-day-width));
  }

  .os-gantt-cell {
    min-height: 22px;
  }

  .os-gantt-label > span {
    display: none;
  }

  .os-sheet-table .os-row-head {
    width: 18px;
    min-width: 0;
  }

  .os-detail-form {
    padding-top: 10px;
  }

  .os-client-line {
    gap: 10px;
  }

  .os-client-line strong {
    margin-top: 5px;
    font-size: 18px;
    line-height: 1.05;
  }

  .os-client-line a {
    padding-top: 18px;
    font-size: 10px;
    white-space: nowrap;
  }

  .os-detail-grid,
  .os-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .os-detail-grid div {
    padding: 6px 7px;
  }

  .os-detail-grid dt {
    font-size: 9px;
  }

  .os-detail-grid dd {
    margin-top: 4px;
    font-size: 10px;
  }

  .os-login-form label,
  .os-detail-form label {
    gap: 6px;
    font-size: 10px;
  }

  .os-detail-form textarea,
  .os-detail-form input,
  .os-detail-form select {
    font-size: 11px;
  }

  .os-detail-form textarea {
    min-height: 44px;
    padding: 6px 7px;
    line-height: 1.35;
  }

  .os-detail-form input,
  .os-detail-form select {
    height: 29px;
    padding: 0 7px;
  }

  .os-form-grid label,
  .os-detail-form > label {
    padding: 6px 7px;
  }

  .os-actions {
    min-height: 32px;
  }

  .os-actions button {
    min-width: 62px;
    height: 30px;
  }

  .os-actions span {
    font-size: 10px;
  }

  .os-empty {
    min-height: 120px;
  }

  .os-estimate-summary {
    min-height: auto;
    padding: 9px 8px;
  }

  .os-estimate-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .os-estimate-actions button {
    min-height: 30px;
    font-size: 10px;
  }

  .os-mobile-tabs {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid rgba(198, 206, 200, 0.88);
    border-left: 1px solid rgba(198, 206, 200, 0.78);
    background: rgba(250, 250, 248, 0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .os-mobile-tabs button {
    min-width: 0;
    min-height: 42px;
    border: 0;
    border-right: 1px solid rgba(198, 206, 200, 0.78);
    border-bottom: 1px solid rgba(198, 206, 200, 0.78);
    background: transparent;
    color: var(--strong-ink);
    font: inherit;
    font-size: 11px;
  }
}

@media print {
  .os-page {
    background: #fff;
  }

  .os-topbar,
  .os-summary,
  .os-gantt-panel,
  .os-operation-panel,
  .os-inquiry-list,
  .os-detail,
  .os-mobile-tabs {
    display: none !important;
  }

  .os-root {
    padding: 0;
  }

  .os-app {
    display: block;
  }

  .os-side-stack {
    display: block;
  }

  .os-side-stack > section:not(.os-estimate-panel) {
    display: none;
  }

  .os-estimate-panel {
    width: 210mm;
    min-height: 297mm;
    padding: 18mm;
    border: 0;
    background: #fff;
  }
}
