:root {
  font-family: Inter, Pretendard, system-ui, -apple-system, sans-serif;
  color: #e8edf5;
  background: #0f1724;
}
* { box-sizing: border-box; }
body { margin: 0; background: #0f1724; }
button, input, textarea, select { font: inherit; }
button { border: 0; border-radius: 9px; padding: 9px 13px; cursor: pointer; background: #3b82f6; color: white; }
button.secondary, .file-button { background: #334155; }
button.ghost { background: transparent; border: 1px solid #475569; }
button.danger { background: #b91c1c; }
button.danger-soft { background: #9f1239; }
button.admin-button { background: #7c3aed; }
button.wide { width: 100%; }
button:disabled { opacity: .45; cursor: not-allowed; }
.hidden { display: none !important; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.shell { max-width: 1500px; margin: 0 auto; min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid #273449; }
h1, h2, h3, p { margin-top: 0; }
.topbar h1 { margin-bottom: 3px; }
.topbar p { color: #94a3b8; margin-bottom: 0; }
.top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.usage { color: #a5b4fc; font-size: 13px; }
.user-badge { color: #c4b5fd; font-size: 13px; font-weight: 700; }
.warning { margin: 18px; padding: 12px; border: 1px solid #f59e0b; color: #fde68a; border-radius: 10px; }
.auth-card { width: min(440px, calc(100% - 32px)); margin: 46px auto; padding: 22px; border: 1px solid #273449; border-radius: 14px; background: #111c2d; }
.auth-card label, .admin-card label { display: block; margin: 12px 0; color: #cbd5e1; }
.helper { color: #94a3b8; line-height: 1.5; font-size: 13px; }
.auth-card input, .auth-card textarea, .admin-card input, .admin-card select, .search, .title-input, textarea { width: 100%; margin-top: 6px; padding: 11px; color: #e2e8f0; background: #0b1320; border: 1px solid #334155; border-radius: 9px; }
.small-textarea { min-height: 90px !important; resize: vertical; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status { color: #93c5fd; min-height: 20px; margin: 9px 0 0; font-size: 13px; }
.request-links { display: flex; justify-content: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.link-button { background: transparent; color: #93c5fd; padding: 2px; text-decoration: underline; text-underline-offset: 3px; }
.secret-box { overflow-wrap: anywhere; color: #cbd5e1; background: #0b1320; border: 1px solid #334155; padding: 10px; border-radius: 9px; }
.workspace { display: grid; grid-template-columns: 280px minmax(360px, 1fr) minmax(360px, 1fr); height: calc(100vh - 85px); }
.sidebar, .editor, .viewer { padding: 16px; overflow: auto; }
.sidebar, .editor { border-right: 1px solid #273449; }
.side-head, .viewer-head, .admin-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.search { margin: 0 0 12px; }
.notes-list { display: flex; flex-direction: column; gap: 8px; }
.note-card { width: 100%; text-align: left; background: #152235; border: 1px solid #273449; padding: 11px; }
.note-card.active { border-color: #60a5fa; background: #172b49; }
.note-card strong, .note-card span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-card span { color: #94a3b8; font-size: 12px; margin-top: 5px; }
.empty { color: #94a3b8; display: grid; place-items: center; min-height: 300px; }
.title-input { font-size: 20px; font-weight: 700; margin: 0 0 10px; }
textarea { min-height: 330px; resize: vertical; line-height: 1.55; }
.editor-actions { margin-top: 10px; }
.file-button { padding: 9px 13px; border-radius: 9px; cursor: pointer; color: white; }
.file-button input { display: none; }
.attachment-list { display: grid; gap: 8px; }
.attachment { display: flex; justify-content: space-between; gap: 8px; align-items: center; border: 1px solid #334155; padding: 9px 10px; border-radius: 9px; }
.attachment button { max-width: 75%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: transparent; text-align: left; padding: 0; }
.attachment small { color: #94a3b8; white-space: nowrap; }
.viewer-body { min-height: 300px; border: 1px dashed #334155; border-radius: 10px; padding: 12px; overflow: auto; color: #cbd5e1; }
.viewer-body img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.sheet-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 10px; }
.sheet-tabs button { background: #334155; white-space: nowrap; }
.excel-table { border-collapse: collapse; min-width: 100%; font-size: 13px; }
.excel-table td { border: 1px solid #334155; padding: 6px 8px; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.admin-panel { padding: 18px; }
.admin-head { margin-bottom: 14px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-card { border: 1px solid #273449; border-radius: 14px; padding: 16px; background: #111c2d; margin-bottom: 14px; }
.admin-list { display: grid; gap: 8px; }
.admin-row, .admin-request { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px; border: 1px solid #334155; border-radius: 10px; background: #0b1320; }
.admin-row strong, .admin-request strong { display: block; }
.admin-row small, .admin-request small { display: block; color: #94a3b8; margin-top: 3px; overflow-wrap: anywhere; }
.admin-request p { margin: 6px 0 0; color: #cbd5e1; white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-row .actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-row .actions button { padding: 7px 9px; font-size: 12px; }
.role-admin { color: #c4b5fd; }
.role-user { color: #93c5fd; }
@media (max-width: 1000px) {
  .workspace { grid-template-columns: 240px 1fr; height: auto; }
  .viewer { grid-column: 1 / -1; border-top: 1px solid #273449; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-row, .admin-request { grid-template-columns: 1fr; }
  .admin-row .actions, .admin-request .row { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .workspace { display: block; }
  .sidebar, .editor { border-right: 0; border-bottom: 1px solid #273449; }
  .topbar { align-items: flex-start; gap: 12px; }
  .top-actions { justify-content: flex-start; }
  .admin-head { align-items: flex-start; flex-direction: column; }
}

#deviceEmailCode{font-size:24px;letter-spacing:4px;text-align:center}#ownChangePasswordBtn{margin-top:12px}
