@font-face {
  font-family: "Bungee";
  src: url("/bungee.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Spirit Korean";
  src: url("/korean.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+1100-11FF, U+3000-303F, U+3130-318F, U+A960-A97F, U+AC00-D7FF, U+FF00-FFEF;
}

:root {
  color-scheme: dark;
  font-family: Inter, "Noto Sans KR", "Malgun Gothic", "Spirit Korean", system-ui, sans-serif;
  color: #f1edf8;
  background: #100f18;
  font-synthesis: none;
  --text: #f1edf8;
  --muted: #a29bb1;
  --line: #2a2536;
  --accent: #c7acff;
  --sidebar-width: 244px;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; width: 19px; height: 19px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #b392fc; outline-offset: 3px; }

.dashboard { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 2;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  padding: 29px 20px 22px;
  border-right: 1px solid #262131;
  background: linear-gradient(165deg, #15121f, #11101a 48%, #13101b);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  padding: 0 8px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -1.5px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #8457bd;
  border-radius: 11px;
  background: linear-gradient(145deg, #43266a, #251937);
  color: #f3d7ff;
  box-shadow: 0 0 18px #a95cfa2e, inset 0 0 10px #c88fff26;
}
.brand-mark svg { width: 25px; height: 25px; filter: drop-shadow(0 0 4px #da91ff); }
.brand-dot { color: #c7a4ff; }
.side-divider { margin: 28px 3px 26px; height: 1px; background: #2c2738; }
.nav-label { margin: 0 0 12px 11px; font-size: 11px; font-weight: 700; letter-spacing: .075em; color: #a19ab2; }
.navigation { display: grid; gap: 5px; }
.navigation button, .navigation a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #b3aabe;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.navigation button:hover, .navigation a:hover { background: #211b2c; color: var(--text); }
.navigation .nav-active { border-color: #49355f; background: #2c2041; color: #eadbff; }
.nav-active svg { color: #caa9ff; }
.sidebar-footer {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: auto;
  padding: 18px 6px 0;
  border-top: 1px solid var(--line);
}
.admin-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #262033;
  color: #c4a8ec;
}
.sidebar-footer strong, .sidebar-footer div span { display: block; }
.sidebar-footer strong { font-size: 13px; }
.sidebar-footer div span { margin-top: 4px; font-size: 11px; color: var(--muted); }
.logout-form { padding: 10px 6px 0; }
.logout-form button { padding: 6px 9px; border-radius: 5px; background: #262033; color: #d5c5e8; font-size: 12px; }
.logout-form button:hover { background: #3a2a4c; }

.login-page {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 22px;
  place-items: center;
  background: linear-gradient(90deg, #100d1ae8, #100d1a66), url('/city.webp') center / cover no-repeat, #100f18;
}
.login-card {
  width: min(100%, 386px);
  padding: clamp(22px, 5vw, 34px);
  border: 1px solid #5d4274;
  border-radius: 14px;
  background: #1a1423f2;
  box-shadow: 0 20px 80px #07050bc0;
}
.login-brand { font: 38px / 1 "Bungee", sans-serif; color: #f4dcff; text-shadow: 0 0 19px #bd70faad; }
.login-brand span { color: #cf9aff; }
.login-card h1 { margin: 13px 0 20px; font-size: 20px; }
.login-card form { display: grid; gap: 8px; }
.login-card label { color: #d9cae7; font-size: 13px; }
.login-card input { width: 100%; height: 43px; margin-bottom: 7px; padding: 0 11px; border: 1px solid #624b75; border-radius: 6px; background: #100d19; }
.login-card .primary { margin-top: 4px; justify-content: center; }
.login-error { margin: 0 0 2px; color: #ffc5d1; font-size: 13px; }

.workspace {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: radial-gradient(ellipse at 92% 18%, #1b1426, transparent 46%), #100f18;
}
.workspace-top {
  min-height: 71px;
  padding: 12px clamp(20px, 4vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #262131;
  background: #100e18bb;
}
.breadcrumb { display: flex; align-items: center; gap: 10px; color: #d5cede; font-size: 13px; font-weight: 600; }
.breadcrumb svg { width: 15px; height: 15px; color: #a490b6; }
.searchbox {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(318px, 50%);
  height: 37px;
  padding: 0 9px 0 12px;
  border: 1px solid #312a40;
  border-radius: 8px;
  background: #1a1625;
  color: #a49ab4;
}
.searchbox:focus-within { border-color: #9672c7; }
.searchbox svg { width: 16px; height: 16px; }
.searchbox input { width: 100%; min-width: 0; outline: none; border: 0; background: transparent; color: var(--text); font-size: 13px; }
.searchbox input::placeholder { color: #a39aaf; }
.searchbox kbd {
  flex: none;
  padding: 2px 5px;
  border: 1px solid #3c344b;
  border-radius: 4px;
  color: #b2a8bd;
  font: 10px "IBM Plex Mono", monospace;
}
.workspace-content { max-width: 1510px; margin: 0 auto; padding: 32px clamp(20px, 4vw, 58px) 68px; }
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid #554167;
  border-radius: 16px;
  background: #171326 url("/city.webp") center 50% / cover;
  box-shadow: 0 18px 55px #07060c85;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #140f20f5 0%, #181128d9 24%, #16122658 58%, #1510200a 94%),
    linear-gradient(0deg, #100b1a84, transparent 63%);
  content: "";
}
.hero-content { padding: 31px clamp(27px, 5vw, 65px) 39px; }
.hero-logo {
  width: fit-content;
  margin-left: -4px;
  color: #f9e8ff;
  font-family: "Bricolage Grotesque", Inter, system-ui, sans-serif;
  font-size: clamp(70px, 7.8vw, 119px);
  font-weight: 800;
  font-style: italic;
  line-height: .98;
  letter-spacing: -.085em;
  text-shadow: 0 0 2px white, 0 0 12px #d97bff, 0 0 32px #b643f78c, 0 0 65px #a340e095;
}
.hero-logo span { color: #dc9fff; }
.hero h1 {
  margin: 20px 0 25px;
  color: #e2d6ef;
  font-size: clamp(15px, 2.2vw, 21px);
  font-weight: 500;
  letter-spacing: -.025em;
}
.primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #e0ceff;
  border-radius: 8px;
  background: #c9abff;
  color: #1b1229;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 5px 22px #ae70f65e;
}
.primary:hover { background: #dfcaff; }
.primary svg { width: 16px; height: 16px; stroke-width: 2.3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.open-file {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #745d8d;
  border-radius: 8px;
  background: #241c35da;
  color: #f2e7ff;
  font-size: 13px;
  font-weight: 650;
}
.open-file:hover { background: #3a2a50; }
.open-file svg { width: 15px; height: 15px; }

.documents { margin-top: 37px; }
.documents-top, .documents-title, .documents-controls { display: flex; align-items: center; }
.documents-top { justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.documents-title { gap: 11px; }
.documents h2 { margin: 0; font-size: clamp(18px, 2.1vw, 23px); letter-spacing: -.05em; }
.document-count {
  padding: 3px 8px;
  border: 1px solid #362a47;
  border-radius: 30px;
  background: #21192c;
  color: #bfb1d3;
  font-size: 11px;
  white-space: nowrap;
}
.documents-controls { gap: 9px; }
.sort-control, .layout-controls {
  display: flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid #342c41;
  border-radius: 8px;
  background: #191624;
}
.sort-control { gap: 6px; padding-left: 9px; color: #b8acc7; }
.sort-control svg { width: 15px; height: 15px; }
.sort-control select { border: 0; background: transparent; padding: 0 7px 0 0; color: #ddd4e9; font-size: 12px; }
.layout-controls { padding: 2px; gap: 2px; }
.icon-button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 30px;
  border-radius: 6px;
  background: transparent;
  color: #a9a0ba;
}
.icon-button svg { width: 16px; height: 16px; }
.icon-button:hover, .icon-button[aria-expanded="true"] { background: #31263f; color: #efe3ff; }
.layout-controls .layout-active { background: #392950; color: #e4ceff; }
.file-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.file-card {
  position: relative;
  min-width: 0;
  border: 1px solid #332a40;
  border-radius: 12px;
  background: #1b1726;
  transition: border-color .18s, background .18s;
}
.file-card:hover, .file-card:focus-within { background: #211a30; border-color: #694e85; }
.file-link { display: block; border-radius: inherit; }
.file-preview {
  display: grid;
  place-items: center;
  height: clamp(108px, 12vw, 164px);
  overflow: hidden;
  padding: 14px 16px 0;
  border-radius: 11px 11px 0 0;
  border-bottom: 1px solid #392d46;
  background:
    radial-gradient(ellipse at 40% 100%, #57406e, transparent 77%),
    repeating-linear-gradient(0deg, #c2a2f005 0 1px, transparent 1px 18px),
    repeating-linear-gradient(90deg, #c2a2f005 0 1px, transparent 1px 18px),
    #2b2239;
}
.file-card:nth-child(3n+2) .file-preview { background-color: #212d44; }
.file-card:nth-child(3n) .file-preview { background-color: #352742; }
.mini-sheet {
  align-self: end;
  display: grid;
  grid-template-columns: 19px repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 365px;
  border: 1px solid #ffffff64;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  overflow: hidden;
  background: #f7f6fb;
  box-shadow: 0 4px 22px #0b07165e;
  color: #464150;
  text-align: left;
}
.mini-sheet span {
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid #e2deea;
  border-bottom: 1px solid #e2deea;
  padding: 4px 5px;
  font-size: clamp(7px, .7vw, 10px);
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-sheet .mini-label { background: #eeebf5; color: #635a73; text-align: center; }
.file-info { display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 12px 71px 12px 12px; }
.file-mark {
  display: grid;
  place-items: center;
  flex: 0 0 33px;
  height: 33px;
  border: 1px solid #31534c;
  border-radius: 8px;
  background: #203633;
  color: #97e6c3;
}
.file-mark svg { width: 17px; height: 17px; }
.file-labels { display: grid; gap: 4px; min-width: 0; }
.file-name { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.file-date { color: #afa6be; font-size: 11px; white-space: nowrap; }
.file-actions { position: absolute; right: 8px; bottom: 21px; display: flex; align-items: center; }
.file-actions .is-favorite { color: #f1ce81; }
.file-actions .is-favorite svg { fill: #f1ce81; }
.file-menu {
  position: absolute;
  z-index: 3;
  top: 35px;
  right: 0;
  min-width: 150px;
  padding: 4px;
  border: 1px solid #4a3a5f;
  border-radius: 8px;
  background: #251d34;
  box-shadow: 0 12px 30px #080610a1;
}
.menu-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border-radius: 5px;
  background: transparent;
  color: #eee7f8;
  text-align: left;
  font-size: 12px;
}
.menu-item svg { width: 16px; height: 16px; color: #c4abd9; }
.menu-item:hover { background: #3a2a50; }
.menu-item[data-action="delete"], .menu-item[data-action="delete"] svg { color: #ffb4be; }
.file-list { grid-template-columns: 1fr; gap: 8px; }
.file-list .file-preview { display: none; }
.file-list .file-info { min-height: 59px; }
.file-list .file-labels { display: flex; flex: 1; align-items: center; justify-content: space-between; gap: 12px; }
.file-list .file-actions { bottom: 14px; }
.empty {
  grid-column: 1 / -1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 178px;
  margin: 0;
  border: 1px dashed #413451;
  border-radius: 12px;
  color: #bcb1cc;
  text-align: center;
  font-size: 13px;
}
.empty-icon { color: #bd9be9; }
.empty-icon svg { width: 25px; height: 25px; }

dialog {
  width: min(420px, calc(100% - 36px));
  padding: 24px;
  border: 1px solid #59446f;
  border-radius: 13px;
  background: #20192d;
  color: var(--text);
  box-shadow: 0 20px 75px #0008;
}
dialog::backdrop { background: #090711a8; }
dialog h2 { margin: 0 0 15px; font-size: 18px; }
dialog p { color: #c8bed4; font-size: 14px; overflow-wrap: anywhere; }
dialog p:empty { display: none; }
dialog input { width: 100%; padding: 10px 12px; border: 1px solid #544365; border-radius: 6px; background: #14101f; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 19px; }
.dialog-actions button { padding: 8px 14px; border-radius: 6px; background: #342844; color: var(--text); font-size: 13px; }
.dialog-actions button[value="confirm"] { background: #c9abff; color: #211330; font-weight: 700; }
.dialog-actions button.danger { background: #f2a4b5; color: #451523; }
.toast {
  position: fixed;
  z-index: 12;
  right: 22px;
  bottom: 23px;
  width: max-content;
  max-width: calc(100vw - 44px);
  padding: 13px 17px;
  border: 1px solid #5b4673;
  border-radius: 8px;
  background: #2a203c;
  color: #f3eaff;
  box-shadow: 0 8px 28px #07051080;
  font-size: 13px;
}

.editor {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
  color: #242134;
  color-scheme: light;
  --grid-line: #e4e2eb;
  --sheet-accent: #7651be;
}
.editor-header {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 10px 18px;
  border-bottom: 1px solid #e9e5ef;
  background: #faf8fd;
}
.editor-home, .editor-mark {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 8px;
  color: #635776;
}
.editor-home:hover { background: #ece6f7; }
.editor-mark { background: #e0f3eb; color: #167456; }
.editor-mark svg { width: 20px; height: 20px; }
.editor-title {
  flex: 0 1 435px;
  min-width: 0;
  height: 35px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: #272033;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.035em;
}
.editor-title:hover { border-color: #e1d8eb; }
.editor-title:focus { border-color: #ac94ce; outline: 0; }
.save-status {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 6px 8px;
  border-radius: 6px;
  background: transparent;
  color: #625a70;
  font-size: 12px;
  white-space: nowrap;
}
.save-status:hover { background: #ece6f7; }
.save-status svg { width: 15px; height: 15px; color: #287556; }
.save-status[data-state="error"] { color: #a22037; }
.sheet-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 6px 14px;
  border-bottom: 1px solid #e4ddeb;
  background: #f2edf8;
}
.sheet-tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 30px;
  height: 29px;
  padding: 0 6px;
  border-radius: 5px;
  background: transparent;
  color: #3e344d;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.sheet-tool svg { width: 16px; height: 16px; }
.sheet-tool:disabled { opacity: .35; cursor: default; }
.sheet-tool:not(:disabled):hover, .sheet-tool[aria-pressed="true"], .sheet-menu[open] > summary { background: #e6dbf4; color: #502e89; }
.sheet-tool b, .sheet-tool i, .sheet-tool u { font: 700 15px Georgia, serif; }
.sheet-tool i { font-style: italic; }
.tool-divider { flex: 0 0 1px; height: 19px; margin: 0 4px; background: #dcd3e8; }
.tool-chevron svg { width: 11px; height: 11px; }
.text-color-mark { font-size: 15px; font-weight: 700; border-bottom: 2px solid currentColor; line-height: 1; }
.function-mark { font-size: 17px; }
.format-mark { font: 12px "IBM Plex Mono", monospace; }
.sheet-menu { position: relative; display: flex; }
.sheet-menu summary { list-style: none; }
.sheet-menu summary::-webkit-details-marker { display: none; }
.sheet-menu-panel {
  position: absolute;
  z-index: 6;
  top: calc(100% + 5px);
  left: 0;
  min-width: 155px;
  padding: 5px;
  border: 1px solid #dcd2e7;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 8px 24px #32204429;
}
.sheet-menu-option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 9px;
  border-radius: 4px;
  background: transparent;
  color: #332941;
  text-align: left;
  font-size: 12px;
  white-space: nowrap;
}
.sheet-menu-option svg { width: 15px; height: 15px; }
.sheet-menu-option:hover { background: #efe8f8; }
.sheet-menu-panel.align-end { left: auto; right: 0; }
.swatches { display: grid; grid-template-columns: repeat(7, 19px); gap: 4px; padding: 5px; }
.swatch { width: 19px; height: 19px; border: 1px solid #2412392d; border-radius: 3px; }
.swatch:hover { outline: 2px solid #8d67bf; outline-offset: 1px; }
.custom-color { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 8px; font-size: 12px; }
.custom-color input { width: 31px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.formula-bar {
  display: flex;
  min-height: 34px;
  border-bottom: 1px solid var(--grid-line);
  background: #fdfcfe;
}
.cell-address {
  display: grid;
  flex: 0 0 100px;
  place-items: center;
  border-right: 1px solid var(--grid-line);
  color: #514561;
  font: 12px "IBM Plex Mono", monospace;
}
.formula-label { align-self: center; padding: 0 13px; color: #6d597f; font: italic 16px Georgia, serif; }
.formula-input { flex: 1; min-width: 0; height: 33px; padding: 7px 8px 5px 0; border: 0; outline: 0; resize: none; background: transparent; font-size: 13px; }
.formula-bar:focus-within { box-shadow: inset 0 -2px var(--sheet-accent); }
.grid-scroll { flex: 1; overflow: auto; scroll-padding: 28px 0 0 49px; }
.sheet-grid {
  width: max-content;
  table-layout: fixed;
  border-spacing: 0;
  color: #211d29;
  font-size: 13px;
  user-select: none;
}
.row-index-col { width: 49px; }
.sheet-grid th, .sheet-grid td { border-bottom: 1px solid var(--grid-line); border-right: 1px solid var(--grid-line); }
.sheet-grid th {
  position: relative;
  padding: 0;
  background: #f6f3fa;
  color: #60566e;
  text-align: center;
  font: 12px "IBM Plex Mono", monospace;
}
.sheet-grid thead th { position: sticky; top: 0; z-index: 3; height: 28px; }
.sheet-grid .row-header { position: sticky; left: 0; z-index: 2; }
.sheet-grid .grid-corner { left: 0; z-index: 4; }
.sheet-grid .frozen-row > td, .sheet-grid .frozen-row > th {
  position: sticky;
  top: 28px;
  z-index: 2;
  border-bottom-color: #a99db7;
}
.sheet-grid .frozen-row > .row-header { z-index: 3; }
.sheet-grid thead th { z-index: 4; }
.sheet-grid thead .grid-corner { z-index: 5; }
.sheet-grid th.header-selected { background: #e9ddfb; color: #513181; }
.row-header, .column-header, .grid-corner { cursor: pointer; }
.resize-column, .resize-row { position: absolute; z-index: 1; touch-action: none; }
.resize-column { top: 0; right: 0; width: 5px; height: 100%; cursor: col-resize; }
.resize-row { bottom: 0; left: 0; width: 100%; height: 5px; cursor: row-resize; }
.resize-column:hover, .resize-row:hover { background: #9274c5; }
.sheet-cell { position: relative; padding: 0 5px; vertical-align: middle; background: #fff; cursor: cell; }
.cell-value { display: block; min-width: 0; overflow: hidden; text-overflow: clip; white-space: pre; line-height: 1.35; }
.wrapped .cell-value { white-space: pre-wrap; overflow-wrap: anywhere; }
.sheet-cell.cell-error { color: #b4233f; }
.cell-selected { box-shadow: inset 0 0 0 120px #b08af128; }
.cell-active::after { position: absolute; z-index: 1; inset: -1px; border: 2px solid var(--sheet-accent); content: ""; pointer-events: none; }
.cell-input {
  position: absolute;
  z-index: 2;
  inset: -1px;
  width: calc(100% + 2px);
  min-width: 0;
  padding: 3px 5px 0;
  border: 2px solid var(--sheet-accent);
  outline: 0;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  resize: none;
  overflow: hidden;
  font: inherit;
}
.cell-input:focus-visible { outline: 0; }
.cell-input.editing { opacity: 1; pointer-events: auto; }
.cell-dropdown {
  position: absolute;
  z-index: 1;
  inset: 1px 4px;
  width: calc(100% - 8px);
  padding: 0 4px;
  border: 0;
  border-radius: 12px;
  background: #edf0f3;
  color: inherit;
  font: inherit;
  text-align: center;
}
.has-dropdown > .cell-value { visibility: hidden; }
.sheet-config { color-scheme: dark; }
.sheet-config-fields { display: grid; gap: 12px; }
.sheet-config-field { display: grid; gap: 5px; color: #e7dbf2; font-size: 13px; }
.sheet-config :is(textarea, select) {
  padding: 8px 10px;
  border: 1px solid #544365;
  border-radius: 6px;
  background: #14101f;
  font: inherit;
}
.sheet-config textarea { resize: vertical; }
.sheet-config input[type="color"] { width: 48px; height: 30px; padding: 2px; }
.sheet-config input[type="checkbox"] { width: 16px; }
.current-conditions { display: grid; gap: 5px; max-height: 165px; overflow: auto; margin-bottom: 14px; }
.current-conditions:empty { display: none; }
.current-condition { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 12px; }
.current-condition span { padding: 3px 6px; border-radius: 4px; }
.current-condition button { padding: 4px 8px; border-radius: 4px; background: #432d50; color: #ffd3dc; }
.sheet-footer { position: relative; z-index: 5; display: flex; align-items: center; min-height: 43px; border-top: 1px solid #e5ddec; background: #f6f2fa; }
.sheet-tab-controls { display: flex; align-items: center; gap: 1px; padding: 0 7px; }
.sheet-tab-controls .sheet-menu-panel { top: auto; bottom: calc(100% + 5px); }
.sheet-tabs { display: flex; align-items: stretch; min-width: 0; overflow: auto; }
.sheet-tab {
  flex: 0 0 auto;
  max-width: 245px;
  min-height: 40px;
  padding: 0 16px;
  overflow: hidden;
  border-inline-end: 1px solid #e7dfee;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #574b66;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.sheet-tab:hover { background: #ede6f5; }
.sheet-tab[aria-selected="true"] { border-bottom-color: var(--sheet-accent); background: #eae0f7; color: #4c2b7c; font-weight: 700; }

@media (min-width: 1500px) {
  .hero { min-height: 410px; }
}
@media (max-width: 1000px) {
  :root { --sidebar-width: 196px; }
  .sidebar { padding-inline: 14px; }
  .file-grid:not(.file-list) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 710px) {
  .sidebar { position: static; width: auto; padding: 13px 17px; border: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; font-size: 23px; }
  .brand-mark { width: 33px; height: 33px; }
  .side-divider, .nav-label, .sidebar-footer, .breadcrumb, .searchbox kbd { display: none; }
  .logout-form { padding: 8px 0 0; }
  .navigation { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px; }
  .navigation button, .navigation a { width: auto; flex: 1 0 auto; justify-content: center; gap: 6px; min-height: 36px; padding: 0 6px; font-size: 12px; white-space: nowrap; }
  .navigation svg { width: 15px; height: 15px; }
  .workspace { margin: 0; }
  .workspace-top { min-height: 57px; padding-inline: 17px; }
  .searchbox { width: 100%; }
  .workspace-content { padding: 17px 17px 40px; }
  .hero { min-height: 275px; background-position: 57% center; }
  .documents { margin-top: 26px; }
}
@media (max-width: 440px) {
  .file-grid:not(.file-list) { grid-template-columns: 1fr; }
  .file-preview { height: 136px; }
  .mini-sheet span { font-size: 9px; }
  .editor-header { gap: 6px; padding-inline: 8px; }
  .editor-title { font-size: 16px; }
  .editor-mark { display: none; }
  .sheet-toolbar { padding-inline: 6px; }
  .sheet-toolbar .tool-divider { margin-inline: 1px; }
  .cell-address { flex-basis: 63px; }
  .file-list .file-labels { display: grid; gap: 3px; }
}
