:root {
    --paper: #f4efe4;
    --paper-light: #fbf8f1;
    --desk: #e9e6e0;
    --ink: #3a2822;
    --ink-soft: #6d5b50;
    --ribbon: #b7434e;
    --pink: #e8a7b8;
    --blue: #a9d4e4;
    --green: #6f8b62;
    --yellow: #f1d78a;
    --line: rgba(58, 40, 34, 0.18);
    --shadow: 0 24px 64px rgba(58, 40, 34, 0.14);
    --shadow-small: 0 12px 28px rgba(58, 40, 34, 0.15);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    background: var(--desk);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--desk);
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    font-size: 15px;
    letter-spacing: 0;
}

body.surface-open {
    overflow: hidden;
}

button,
input,
a {
    font: inherit;
    letter-spacing: 0;
}

button {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 20000;
    padding: 10px 14px;
    color: var(--paper-light);
    background: var(--ink);
    transform: translateY(-160%);
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.worktable-shell {
    min-height: 100vh;
}

.worktable-header {
    position: sticky;
    top: 0;
    z-index: 500;
    display: grid;
    grid-template-columns: minmax(220px, auto) 1fr auto;
    align-items: center;
    min-height: 72px;
    padding: 12px clamp(18px, 3vw, 48px);
    border-bottom: 1px solid var(--line);
    background: rgba(233, 230, 224, 0.94);
    backdrop-filter: blur(18px);
}

.worktable-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
}

.brand-divider {
    width: 34px;
    height: 1px;
    background: var(--ink);
}

.brand-product {
    font-size: 11px;
    font-weight: 700;
}

.worktable-day {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    color: var(--ink-soft);
    font-family: Georgia, "Songti SC", serif;
    font-size: 13px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(111, 139, 98, 0.14);
}

.worktable-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.header-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    background: var(--paper-light);
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.header-action:hover {
    color: var(--paper-light);
    background: var(--ink);
    transform: translateY(-2px);
}

.header-search {
    min-width: 182px;
    gap: 10px;
    padding: 0 10px 0 14px;
    justify-content: flex-start;
}

.header-search span {
    flex: 1;
    text-align: left;
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 24px;
    padding: 0 7px;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink-soft);
    background: rgba(255, 255, 255, 0.46);
    box-shadow: none;
    font-size: 11px;
}

.header-action:hover kbd {
    color: var(--paper-light);
    border-color: rgba(255, 255, 255, 0.26);
}

.icon-action {
    width: 42px;
    flex: 0 0 42px;
}

.admin-action {
    gap: 8px;
    min-width: 112px;
    padding: 0 13px 0 8px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-action img {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid rgba(58, 40, 34, 0.2);
    border-radius: 6px;
    background: var(--paper-light);
    object-fit: contain;
}

.worktable-main {
    width: min(2240px, calc(100% - clamp(32px, 3vw, 72px)));
    margin: 0 auto;
    padding: 34px 0 30px;
}

.desk-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 22px;
}

.desk-kicker,
.drawer-kicker {
    margin: 0 0 6px;
    color: var(--ribbon);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.desk-intro h1 {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: 42px;
    font-weight: 500;
    line-height: 1.15;
}

.desk-note {
    margin: 0 0 5px;
    color: var(--ink-soft);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-style: italic;
}

.desk-stage {
    position: relative;
    min-height: clamp(680px, 44vw, 920px);
    overflow: hidden;
    border: 1px solid rgba(58, 40, 34, 0.2);
    border-radius: var(--radius);
    background-color: var(--paper);
    box-shadow: var(--shadow);
    isolation: isolate;
    container-type: inline-size;
}

.desk-grain {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.42;
    background-image:
        repeating-linear-gradient(0deg, transparent 0, transparent 3px, rgba(58, 40, 34, 0.018) 4px),
        repeating-linear-gradient(90deg, transparent 0, transparent 5px, rgba(58, 40, 34, 0.012) 6px);
    pointer-events: none;
}

.desk-stage::before {
    content: "";
    position: absolute;
    inset: 18px;
    z-index: -1;
    border: 1px solid rgba(58, 40, 34, 0.08);
    pointer-events: none;
}

.desk-stage::after {
    content: "PUUI WORKTABLE / INTERNAL USE";
    position: absolute;
    top: 28px;
    right: 28px;
    color: rgba(58, 40, 34, 0.42);
    font-size: 9px;
    font-weight: 700;
    pointer-events: none;
}

.desk-scrap {
    position: absolute;
    z-index: 0;
    width: clamp(82px, 5.4cqw, 122px);
    height: clamp(102px, 6.7cqw, 152px);
    object-fit: cover;
    opacity: 0.34;
    filter: saturate(0.75);
    pointer-events: none;
}

.desk-scrap--poster {
    left: 33px;
    top: 35px;
    transform: rotate(-8deg);
}

.desk-scrap--bag {
    right: 26%;
    bottom: 30px;
    transform: rotate(7deg);
}

.desk-thread {
    position: absolute;
    z-index: 0;
    display: block;
    width: 160px;
    height: 90px;
    border: 1px solid rgba(183, 67, 78, 0.3);
    border-color: rgba(183, 67, 78, 0.3) transparent transparent rgba(183, 67, 78, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

.desk-thread--one {
    left: 45%;
    top: 5%;
    transform: rotate(18deg);
}

.desk-thread--two {
    left: 5%;
    bottom: 6%;
    transform: rotate(-28deg);
}

.department-grid {
    position: absolute;
    inset: 0 24% 0 0;
}

.department-object {
    position: absolute;
    z-index: 4;
    width: 190px;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: none;
    text-align: left;
    transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), z-index 0s;
}

.department-object:hover,
.department-object:focus-visible {
    z-index: 20;
    transform: translateY(-9px) rotate(0deg) scale(1.025);
}

.object-picture {
    position: relative;
    display: block;
    overflow: hidden;
    width: 100%;
    border: 7px solid var(--paper-light);
    border-radius: 4px;
    background: #d7d1c7;
    box-shadow: var(--shadow-small);
}

.object-picture::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(58, 40, 34, 0.12);
    pointer-events: none;
}

.object-picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease, filter 300ms ease;
}

.department-object:hover .object-picture img {
    transform: scale(1.035);
    filter: saturate(1.06);
}

.object-label {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    width: calc(100% - 10px);
    margin: -7px auto 0;
    padding: 11px 13px 9px;
    border: 1px solid rgba(58, 40, 34, 0.16);
    border-radius: 3px;
    background: var(--paper-light);
    box-shadow: 0 8px 16px rgba(58, 40, 34, 0.12);
}

.object-label::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    width: 36px;
    height: 12px;
    background: rgba(232, 167, 184, 0.78);
    transform: translateX(-50%) rotate(-2deg);
}

.object-name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-family: Georgia, "Songti SC", serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
}

.object-count {
    flex: 0 0 auto;
    color: var(--ink-soft);
    font-size: 9px;
    text-transform: uppercase;
}

.department-object--1 {
    left: 9%;
    top: 16%;
    width: clamp(174px, 12.8cqw, 286px);
    transform: rotate(-3deg);
}

.department-object--1 .object-picture {
    aspect-ratio: 0.79;
    height: auto;
}

.department-object--2 {
    left: 31%;
    top: 7%;
    width: clamp(238px, 16.2cqw, 360px);
    transform: rotate(2deg);
}

.department-object--2 .object-picture {
    aspect-ratio: 1.47;
    height: auto;
}

.department-object--3 {
    left: 59%;
    top: 15%;
    width: clamp(180px, 12.8cqw, 286px);
    transform: rotate(4deg);
}

.department-object--3 .object-picture {
    aspect-ratio: 0.8;
    height: auto;
}

.department-object--3 .object-label::before {
    background: rgba(169, 212, 228, 0.84);
}

.department-object--4 {
    left: 14%;
    top: 55%;
    width: clamp(226px, 15.8cqw, 350px);
    transform: rotate(2deg);
}

.department-object--4 .object-picture {
    aspect-ratio: 1.49;
    height: auto;
}

.department-object--5 {
    left: 42%;
    top: 50%;
    width: clamp(176px, 12.4cqw, 276px);
    transform: rotate(-4deg);
}

.department-object--5 .object-picture {
    aspect-ratio: 0.82;
    height: auto;
}

.department-object--5 .object-label::before {
    background: rgba(241, 215, 138, 0.88);
}

.department-object--6 {
    left: 64%;
    top: 57%;
    width: clamp(214px, 15cqw, 334px);
    transform: rotate(3deg);
}

.department-object--6 .object-picture {
    aspect-ratio: 1.51;
    height: auto;
}

.recent-note {
    position: absolute;
    top: clamp(82px, 7cqw, 138px);
    right: clamp(28px, 2.5cqw, 56px);
    z-index: 5;
    width: clamp(220px, 14.2cqw, 310px);
    min-height: clamp(220px, 15cqw, 326px);
    padding: 26px 22px 20px;
    border: 1px solid rgba(58, 40, 34, 0.15);
    border-radius: 2px;
    background: var(--yellow);
    box-shadow: var(--shadow-small);
    transform: rotate(1deg);
}

.note-pin {
    position: absolute;
    top: -8px;
    left: 50%;
    width: 54px;
    height: 16px;
    background: rgba(255, 255, 255, 0.6);
    transform: translateX(-50%) rotate(-2deg);
}

.note-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(58, 40, 34, 0.2);
}

.note-heading p {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: 18px;
    font-weight: 700;
}

.note-heading span {
    font-size: 8px;
    font-weight: 700;
}

.recent-list {
    display: grid;
    gap: 4px;
    margin-top: 10px;
}

.recent-item,
.recent-tool {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px dashed rgba(58, 40, 34, 0.22);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.recent-item span,
.recent-tool strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recent-tool strong {
    font-size: 12px;
    font-weight: 650;
}

.recent-tool small {
    color: rgba(58, 40, 34, 0.58);
    font-size: 9px;
}

.recent-item i {
    font-size: 10px;
}

.recent-tool:hover strong {
    color: var(--ribbon);
}

.recent-empty {
    margin: 28px 0 0;
    color: rgba(58, 40, 34, 0.64);
    font-family: Georgia, "Songti SC", serif;
    font-size: 13px;
    line-height: 1.7;
}

.ai-power-strip {
    position: absolute;
    right: clamp(28px, 2.5cqw, 56px);
    bottom: clamp(106px, 7cqw, 146px);
    z-index: 6;
    width: clamp(224px, 14.4cqw, 314px);
    min-height: clamp(178px, 12cqw, 260px);
    padding: 18px;
    border-radius: 7px;
    color: var(--paper-light);
    background: var(--ink);
    box-shadow: var(--shadow-small);
}

.power-led {
    position: absolute;
    top: 17px;
    right: 17px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d6ff97;
    box-shadow: 0 0 0 5px rgba(214, 255, 151, 0.08);
}

.power-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding-right: 22px;
}

.power-title span {
    font-size: 10px;
    font-weight: 700;
}

.power-title small {
    color: rgba(255, 255, 255, 0.55);
    font-size: 8px;
}

.power-tools {
    display: grid;
    gap: 7px;
}

.power-tool {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 28px;
    overflow: hidden;
    padding: 4px 0;
    border: 0;
    color: rgba(255, 255, 255, 0.82);
    background: transparent;
    cursor: pointer;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.power-tool:hover {
    color: #d6ff97;
}

.power-socket {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 50%;
    box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(255, 255, 255, 0.18);
}

.power-tool-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.all-tools-ticket {
    position: absolute;
    right: clamp(28px, 2.5cqw, 56px);
    bottom: clamp(28px, 2.2cqw, 48px);
    z-index: 7;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 12px;
    width: clamp(225px, 14.4cqw, 314px);
    height: clamp(48px, 3.4cqw, 64px);
    padding: 0 14px;
    border: 1px solid rgba(58, 40, 34, 0.2);
    border-radius: 3px;
    color: var(--ink);
    background: var(--pink);
    cursor: pointer;
    box-shadow: 0 7px 0 rgba(58, 40, 34, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.all-tools-ticket:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 0 rgba(58, 40, 34, 0.09);
}

.all-tools-ticket span {
    text-align: left;
    font-weight: 700;
}

.all-tools-ticket strong {
    font-family: Georgia, serif;
    font-size: 22px;
}

.desk-empty {
    position: absolute;
    left: 50%;
    top: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
}

.desk-empty p {
    font-family: Georgia, "Songti SC", serif;
    font-size: 24px;
}

.desk-empty a {
    color: var(--ribbon);
}

.mobile-directory {
    display: none;
}

.worktable-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    width: min(1480px, calc(100% - 48px));
    min-height: 76px;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.worktable-footer span:nth-child(2) {
    font-family: Georgia, serif;
    font-size: 11px;
    font-weight: 400;
    text-transform: none;
}

.worktable-footer button {
    justify-self: end;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid var(--ink-soft);
    color: var(--ink-soft);
    background: transparent;
    cursor: pointer;
}

.surface-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(44, 32, 26, 0.42);
    backdrop-filter: blur(5px);
}

.surface-backdrop[hidden] {
    display: none;
}

.tool-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1600;
    height: 82vh;
    min-height: min(640px, 82vh);
    overflow: hidden;
    border-top: 1px solid rgba(58, 40, 34, 0.32);
    border-radius: 8px 8px 0 0;
    background: var(--paper-light);
    box-shadow: 0 -28px 70px rgba(44, 32, 26, 0.24);
    visibility: hidden;
    transform: translateY(105%);
    transition: transform 340ms cubic-bezier(0.22, 0.78, 0.2, 1), visibility 340ms ease;
}

.tool-drawer.is-open {
    visibility: visible;
    transform: translateY(0);
}

.drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 104px;
    padding: 24px clamp(24px, 4vw, 64px) 18px;
    border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
    margin: 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: 32px;
    font-weight: 500;
}

.surface-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.surface-close:hover {
    color: var(--paper-light);
    background: var(--ink);
    transform: rotate(6deg);
}

.drawer-body {
    display: grid;
    grid-template-columns: clamp(250px, 16vw, 340px) minmax(0, 1fr);
    height: calc(100% - 104px);
}

.drawer-tabs {
    overflow-y: auto;
    padding: 22px clamp(20px, 2vw, 36px) 48px clamp(24px, 3vw, 64px);
    border-right: 1px solid var(--line);
}

.drawer-tab {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 42px;
    padding: 9px 0;
    border: 0;
    border-bottom: 1px solid rgba(58, 40, 34, 0.1);
    color: var(--ink-soft);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.drawer-tab:hover,
.drawer-tab.is-active {
    color: var(--ink);
}

.drawer-tab.is-active span::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--ribbon);
}

.drawer-tab small {
    font-family: Georgia, serif;
}

.drawer-panels {
    overflow: hidden;
}

.drawer-panel {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 30px clamp(24px, 3vw, 64px) 64px;
}

.drawer-panel.is-active {
    display: block;
}

.panel-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.panel-heading span {
    color: var(--ribbon);
    font-size: 10px;
    font-weight: 700;
}

.panel-heading h3 {
    margin: 4px 0 0;
    font-family: Georgia, "Songti SC", serif;
    font-size: 26px;
    font-weight: 500;
}

.panel-heading p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11px;
}

.tool-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tool-empty {
    grid-column: 1 / -1;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid rgba(58, 40, 34, 0.12);
    border-bottom: 1px solid rgba(58, 40, 34, 0.12);
    color: var(--ink-soft);
    font-family: Georgia, "Songti SC", serif;
    font-size: 18px;
}

.tool-row {
    display: grid;
    grid-template-columns: 1fr 44px;
    align-items: center;
    min-width: 0;
    min-height: 86px;
    padding-left: 12px;
    border: 1px solid rgba(58, 40, 34, 0.12);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.38);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.tool-row:hover {
    border-color: rgba(183, 67, 78, 0.28);
    background: rgba(255, 255, 255, 0.72);
    transform: translateY(-2px);
}

.tool-launch {
    display: grid;
    grid-template-columns: 44px 1fr 18px;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    min-height: 84px;
    padding: 8px 12px 8px 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.tool-launch:hover .tool-copy strong {
    color: var(--ribbon);
}

.tool-icon,
.command-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: white;
    color: var(--ink-soft);
    font-family: Georgia, serif;
    font-size: 17px;
}

.tool-icon img,
.command-icon img {
    width: 100%;
    height: 100%;
    padding: 6px;
    object-fit: contain;
}

.tool-copy {
    min-width: 0;
}

.tool-copy strong,
.tool-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tool-copy strong {
    margin-bottom: 4px;
    transition: color 160ms ease;
}

.tool-copy small {
    color: var(--ink-soft);
    font-size: 11px;
}

.tool-launch > i {
    color: rgba(58, 40, 34, 0.34);
}

.favorite-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: rgba(58, 40, 34, 0.46);
    background: transparent;
    cursor: pointer;
    margin-right: 6px;
}

.favorite-toggle:hover,
.favorite-toggle.is-favorite {
    color: var(--ribbon);
    background: rgba(232, 167, 184, 0.18);
}

.command-surface {
    position: fixed;
    top: 10vh;
    left: 50%;
    z-index: 1700;
    display: flex;
    flex-direction: column;
    width: min(780px, calc(100% - 40px));
    max-height: 76vh;
    overflow: hidden;
    border: 1px solid rgba(58, 40, 34, 0.28);
    border-radius: 8px;
    background: var(--paper-light);
    box-shadow: 0 34px 90px rgba(44, 32, 26, 0.32);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -18px) scale(0.985);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.command-surface.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
}

.command-header {
    display: grid;
    grid-template-columns: 22px 1fr auto 40px;
    align-items: center;
    gap: 14px;
    min-height: 74px;
    padding: 12px 16px 12px 22px;
    border-bottom: 1px solid var(--line);
}

.command-header > i {
    color: var(--ribbon);
}

.command-header input {
    width: 100%;
    height: 48px;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: transparent;
    font-family: Georgia, "Songti SC", serif;
    font-size: 22px;
}

.command-header input::placeholder {
    color: rgba(58, 40, 34, 0.42);
}

.command-header input:focus {
    outline: 0;
}

.command-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    color: var(--ink-soft);
    background: rgba(58, 40, 34, 0.035);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.command-results {
    overflow-y: auto;
    padding: 6px 12px 18px;
}

.command-result[hidden] {
    display: none;
}

.command-launch {
    display: grid;
    grid-template-columns: 46px 1fr 20px;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 68px;
    padding: 8px 10px;
    border: 0;
    border-bottom: 1px solid rgba(58, 40, 34, 0.1);
    border-radius: 5px;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.command-launch:hover,
.command-launch:focus-visible {
    background: rgba(169, 212, 228, 0.2);
}

.command-launch > span:nth-child(2) {
    min-width: 0;
}

.command-launch strong,
.command-launch small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.command-launch strong {
    margin-bottom: 3px;
}

.command-launch small {
    color: var(--ink-soft);
    font-size: 11px;
}

.command-launch > i {
    color: rgba(58, 40, 34, 0.38);
}

.command-empty {
    margin: 0;
    padding: 52px 20px;
    color: var(--ink-soft);
    text-align: center;
}

.copy-menu {
    position: fixed;
    z-index: 1800;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper-light);
    box-shadow: var(--shadow-small);
}

.copy-menu[hidden] {
    display: none;
}

.copy-menu button {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
}

.copy-menu button:hover {
    background: rgba(232, 167, 184, 0.2);
}

.key-cursor {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 25000;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 100ms ease;
}

.key-cursor i {
    position: absolute;
    top: 0;
    right: -5px;
    display: block;
    margin-top: -47px;
    color: #f3cf55;
    font-size: 70px;
    line-height: 70px;
    -webkit-text-stroke: 4px var(--paper-light);
    paint-order: stroke fill;
    filter:
        drop-shadow(0 0 2px var(--ink))
        drop-shadow(3px 4px 0 var(--ink));
    transform: rotate(-173deg);
    transform-origin: 65px 47px;
}

body.key-active .key-cursor {
    opacity: 1;
}

@media (hover: hover) and (pointer: fine) {
    body.worktable-page,
    body.worktable-page * {
        cursor: none !important;
    }
}

.worktable-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 20000;
    max-width: calc(100% - 32px);
    padding: 11px 16px;
    border-radius: 5px;
    color: var(--paper-light);
    background: var(--ink);
    box-shadow: var(--shadow-small);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.worktable-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (min-width: 1540px) {
    .desk-intro h1 {
        font-size: 50px;
    }

    .tool-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 2100px) {
    .tool-list {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1180px) {
    .desk-stage {
        min-height: 650px;
    }

    .department-grid {
        right: 27%;
    }

    .department-object--1 {
        left: 6%;
    }

    .department-object--2 {
        left: 29%;
    }

    .department-object--3 {
        left: 61%;
    }

    .department-object--4 {
        left: 8%;
    }

    .department-object--5 {
        left: 40%;
    }

    .department-object--6 {
        left: 64%;
    }

    .recent-note,
    .ai-power-strip,
    .all-tools-ticket {
        right: 24px;
        width: 220px;
    }
}

@media (max-width: 920px) {
    .worktable-header {
        grid-template-columns: auto 1fr;
    }

    .worktable-day {
        display: none;
    }

    .desk-stage {
        min-height: 700px;
    }

    .department-grid {
        right: 31%;
    }

    .department-object--2 {
        left: 38%;
        width: 190px;
    }

    .department-object--3 {
        left: 7%;
        top: 44%;
    }

    .department-object--4 {
        left: 38%;
        top: 45%;
        width: 190px;
    }

    .department-object--5,
    .department-object--6 {
        display: none;
    }

    .drawer-body {
        grid-template-columns: 220px 1fr;
    }

    .tool-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 740px) {
    .worktable-header {
        min-height: 64px;
        padding: 10px 14px;
    }

    .brand-divider,
    .brand-product,
    .header-search span,
    .header-search kbd {
        display: none;
    }

    .header-search {
        min-width: 42px;
        width: 42px;
        padding: 0;
        justify-content: center;
    }

    .admin-action {
        width: 42px;
        min-width: 42px;
        padding: 0;
    }

    .admin-action span {
        display: none;
    }

    .worktable-main {
        width: calc(100% - 28px);
        padding: 28px 0 18px;
    }

    .desk-intro {
        display: block;
        margin-bottom: 18px;
    }

    .desk-intro h1 {
        max-width: 300px;
        font-size: 30px;
    }

    .desk-note {
        margin-top: 12px;
        font-size: 12px;
    }

    .desk-stage {
        display: none;
    }

    .mobile-directory {
        display: block;
        overflow: hidden;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--paper-light);
        box-shadow: var(--shadow-small);
    }

    .mobile-department {
        display: grid;
        grid-template-columns: 38px 1fr auto 18px;
        align-items: center;
        gap: 12px;
        width: 100%;
        min-height: 82px;
        padding: 12px 16px;
        border: 0;
        border-bottom: 1px solid var(--line);
        color: var(--ink);
        background: transparent;
        cursor: pointer;
        text-align: left;
    }

    .mobile-department:nth-child(4n + 1) {
        background: rgba(232, 167, 184, 0.16);
    }

    .mobile-department:nth-child(4n + 2) {
        background: rgba(169, 212, 228, 0.18);
    }

    .mobile-department:nth-child(4n + 3) {
        background: rgba(241, 215, 138, 0.18);
    }

    .mobile-department:last-child {
        border-bottom: 0;
    }

    .mobile-department-index,
    .mobile-department-count {
        color: var(--ink-soft);
        font-family: Georgia, serif;
        font-size: 12px;
    }

    .mobile-department-name {
        min-width: 0;
        overflow-wrap: anywhere;
        font-family: Georgia, "Songti SC", serif;
        font-size: 20px;
        font-weight: 700;
    }

    .worktable-footer {
        grid-template-columns: 1fr auto;
        width: calc(100% - 28px);
        min-height: 68px;
    }

    .worktable-footer span:nth-child(2) {
        display: none;
    }

    .tool-drawer {
        height: 92vh;
        min-height: 0;
    }

    .drawer-header {
        min-height: 88px;
        padding: 18px 16px 14px;
    }

    .drawer-header h2 {
        font-size: 25px;
    }

    .drawer-body {
        display: block;
        height: calc(100% - 88px);
    }

    .drawer-tabs {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        scrollbar-width: none;
    }

    .drawer-tabs::-webkit-scrollbar {
        display: none;
    }

    .drawer-tab {
        display: inline-flex;
        width: auto;
        min-width: max-content;
        min-height: 36px;
        padding: 7px 12px;
        border: 1px solid var(--line);
        border-radius: 18px;
    }

    .drawer-tab.is-active {
        color: var(--paper-light);
        background: var(--ink);
    }

    .drawer-tab.is-active span::before {
        display: none;
    }

    .drawer-panels {
        height: calc(100% - 58px);
    }

    .drawer-panel {
        padding: 20px 16px 46px;
    }

    .tool-list {
        display: block;
    }

    .tool-row {
        min-height: 70px;
        padding-left: 0;
        border: 0;
        border-bottom: 1px solid rgba(58, 40, 34, 0.12);
        border-radius: 0;
        background: transparent;
        transform: none;
    }

    .tool-launch {
        min-height: 69px;
    }

    .panel-heading h3 {
        font-size: 23px;
    }

    .command-surface {
        top: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
    }

    .command-header {
        grid-template-columns: 18px 1fr 36px;
        gap: 10px;
        min-height: 66px;
        padding: 9px 10px 9px 16px;
    }

    .command-header kbd {
        display: none;
    }

    .command-header input {
        font-size: 18px;
    }

    .command-launch {
        grid-template-columns: 42px 1fr 16px;
        gap: 10px;
    }

    .key-cursor {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (hover: none) {
    .department-object {
        cursor: pointer;
    }
}
