:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: #e9ede8;
  background: #101211;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid transparent; border-radius: 5px; padding: 9px 12px; font-size: 12px; font-weight: 650; }
button:disabled { opacity: .46; cursor: not-allowed; }
.primary { background: #d9f765; color: #151914; }
.primary:hover { background: #e8ff91; }
.secondary { background: #252a22; color: #d9f765; border-color: #394235; }
.secondary:hover { background: #30392a; }
.ghost { background: transparent; color: #a7aea6; border-color: #343934; }
.ghost:hover { background: #252a26; color: #f2f5f0; }
.danger { background: #321f22; color: #f2a4ab; border-color: #5c3038; }
.danger:hover { background: #42262b; }
.small { padding: 6px 8px; font-size: 11px; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 216px; flex: 0 0 216px; background: #111311; border-right: 1px solid #292d29; padding: 15px 9px 13px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 9px; padding: 4px 12px 22px; font-size: 13px; line-height: 1.08; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { width: 28px; height: 28px; border: 1px solid #596d37; border-radius: 6px; background: #d9f765; color: #17200e; display: grid; place-items: center; font-size: 19px; font-weight: 500; }
.sidebar nav { display: grid; gap: 20px; }
.nav-heading { padding: 0 12px 7px; color: #747d73; font-size: 10px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.nav-group { display: grid; gap: 2px; }
.sidebar nav button { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left; background: transparent; color: #a8afa7; font-weight: 550; padding: 10px 12px; border-radius: 5px; border-left: 2px solid transparent; }
.sidebar nav button:hover { background: #1d211d; color: #f3f6f2; }
.sidebar nav button.active { background: #252b20; border-left-color: #d9f765; color: #ebf5d8; }
.nav-icon { width: 15px; text-align: center; font-size: 14px; color: #9da899; }
.sidebar nav button.active .nav-icon { color: #d9f765; }
.side-foot { margin-top: auto; padding: 10px 12px 2px; border-top: 1px solid #292d29; color: #b4bcb1; font-size: 11px; line-height: 1.7; }
.side-foot .dot { display: inline-block; margin-right: 5px; }
.side-foot-note { color: #737d73; }
.main { flex: 1; min-width: 0; }
.topbar { height: 49px; border-bottom: 1px solid #2b302b; background: #151815; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 23px; }
.topbar .left, .account { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-crumb, .top-divider { color: #778176; font-size: 11px; }
.topbar strong { color: #dce3d9; font-size: 12px; font-weight: 600; }
.topbar select { width: auto; max-width: 205px; min-width: 95px; background: #1b1f1b; padding: 5px 8px; font-size: 11px; }
.account { color: #8d978b; font-size: 11px; white-space: nowrap; }
.account .ghost { border: 0; }
.account-name { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
.admin-menu { position: relative; }
.admin-menu summary { cursor: pointer; list-style: none; border: 1px solid #343934; border-radius: 5px; padding: 6px 9px; color: #b9c3b6; }
.admin-menu summary::-webkit-details-marker { display: none; }
.admin-menu > div { position: absolute; right: 0; top: 32px; z-index: 4; width: 145px; padding: 5px; border: 1px solid #3b4539; border-radius: 5px; background: #202620; box-shadow: 0 12px 30px #0008; }
.admin-menu button { display: block; width: 100%; text-align: left; color: #d8e2d3; background: transparent; }
.admin-menu button:hover { background: #303a2d; }
.status-line { display: flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: #a9df69; flex: none; }
.content { max-width: 1600px; margin: 0 auto; padding: 32px 34px 60px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 10px; color: #b3ca6a; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
h1 { margin: 0 0 8px; font-size: 23px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
h2 { margin: 0 0 13px; font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.muted { color: #8b958a; font-size: 12px; line-height: 1.55; }
.actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.panel { background: #191c19; border: 1px solid #303530; border-radius: 7px; overflow: hidden; }
.panel-pad { padding: 20px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 11px; }
.toolbar-title { display: flex; align-items: center; gap: 9px; }
.toolbar h2 { margin: 0; }
.search { width: min(290px, 100%); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { background: #1b1f1b; color: #8c968b; font-size: 10px; font-weight: 650; letter-spacing: .03em; }
td, th { padding: 12px 14px; border-bottom: 1px solid #2b302b; white-space: nowrap; }
td { color: #d1d9cf; font-size: 12px; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #202520; }
.key { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 650; color: #e3ebde; }
.key::before { content: '◇'; font-family: sans-serif; font-size: 13px; color: #cbe65b; margin-right: 9px; }
.secret-note { margin: 4px 0 0 22px; color: #818b80; font-size: 11px; }
.folder-cell { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: #9ea99b; }
.masked-value { color: #8f998c; letter-spacing: .11em; }
.pill { display: inline-flex; align-items: center; border: 1px solid #3c4830; border-radius: 4px; padding: 3px 7px; background: #283023; color: #cfe8a3; font-size: 10px; font-weight: 650; }
.pill.good { border-color: #39523c; background: #203124; color: #a4d8aa; }
.pill.warn { border-color: #5b4b31; background: #342b1b; color: #ddc48b; }
.pill.bad { border-color: #5d393c; background: #352225; color: #e2a2aa; }
.row-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.empty { text-align: center; padding: 54px 20px; color: #879186; font-size: 12px; }
.empty strong { display: block; color: #d4dcd1; margin-bottom: 7px; font-size: 14px; }
.hint { border: 1px solid #303930; border-radius: 5px; background: #202820; padding: 12px 14px; color: #a9b8a3; font-size: 11px; line-height: 1.6; margin: 15px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
label { display: grid; gap: 6px; color: #adb7aa; font-size: 11px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid #3b423b; border-radius: 5px; padding: 9px 10px; background: #121512; color: #ecf2e9; outline: none; }
input::placeholder, textarea::placeholder { color: #647063; }
input:focus, select:focus, textarea:focus { border-color: #adc956; box-shadow: 0 0 0 2px #d9f76524; }
textarea { min-height: 90px; resize: vertical; }
dialog { width: min(560px, calc(100vw - 25px)); padding: 0; border: 1px solid #414a3f; border-radius: 8px; background: #1b1f1b; color: #e9ede8; box-shadow: 0 25px 80px #0009; }
dialog::backdrop { background: #050705bd; }
.modal-head { padding: 18px 21px; border-bottom: 1px solid #323832; display: flex; justify-content: space-between; align-items: center; }
.modal-head h2 { margin: 0; }
.modal-body { padding: 21px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.modal-close { background: transparent; color: #b2bcb0; padding: 2px 7px; font-size: 20px; }
.value-box, .result-box { background: #101410; border: 1px solid #3a4338; border-radius: 5px; padding: 15px; margin: 14px 0; }
.value-box pre, .result-box pre { color: #e6f1db; white-space: pre-wrap; word-break: break-all; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.auth-page, .share-page { min-height: 100vh; display: grid; place-items: center; background: #101211; }
.auth-card, .share-card { width: min(430px, calc(100vw - 32px)); padding: 32px; background: #1a1e1a; border: 1px solid #333a32; border-radius: 9px; }
.auth-card .brand-mark, .share-card .brand-mark { margin-bottom: 22px; }
.auth-card form, .share-card form { display: grid; gap: 16px; margin-top: 25px; }
.auth-card button, .share-card button { width: 100%; }
.error { color: #eaa1a8; font-size: 12px; min-height: 18px; }
#toast { position: fixed; right: 22px; bottom: 22px; z-index: 9; display: none; padding: 12px 17px; border: 1px solid #718643; border-radius: 5px; background: #293328; color: #eaf4d6; box-shadow: 0 8px 25px #0007; font-size: 12px; }
#toast.show { display: block; }
@media (max-width: 850px) {
  .sidebar { width: 58px; flex-basis: 58px; padding: 14px 6px; }
  .brand { padding: 2px 8px 18px; }
  .brand > span, .sidebar nav button > span:last-child, .nav-heading, .side-foot { display: none; }
  .sidebar nav button { justify-content: center; padding: 10px 4px; }
  .nav-icon { width: auto; }
  .topbar { padding: 0 12px; }
  .top-crumb, .account-name, .status-line { display: none; }
  .content { padding: 22px 16px 40px; }
  .page-head { display: block; }
  .page-head .actions { justify-content: flex-start; margin-top: 16px; }
}
@media (max-width: 530px) {
  .topbar select { max-width: 95px; min-width: 0; }
  .topbar .left { gap: 5px; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
}
