* { box-sizing: border-box; }
:root {
  --cream: #f8efdf;
  --paper: #fffaf0;
  --ink: #241a18;
  --orange: #e94d13;
  --gold: #f4a10b;
  --green: #2f7269;
  --purple: #572550;
  --line: rgba(70, 43, 31, .16);
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,.85), transparent 35%),
    linear-gradient(135deg, #f9f0df, #f0dcc2);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 28px;
  background: rgba(255,250,240,.9);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--orange);
  text-decoration: none;
}
.topnav { display: flex; gap: 10px; flex-wrap: wrap; }
.button, button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.primary { background: var(--orange); color: white; }
.secondary { background: var(--purple); color: white; }
.soft { background: #fff6e5; color: var(--ink); border: 1px solid var(--line); }
.danger { background: #9a2d24; color: white; }
main {
  width: min(1100px, calc(100% - 32px));
  margin: 34px auto 70px;
}
.hero {
  text-align: center;
  margin-bottom: 28px;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  margin: 0 0 10px;
  color: var(--purple);
}
.hero p {
  font-size: 1.18rem;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto;
}
.panel {
  background: rgba(255,250,240,.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(20px, 4vw, 38px);
  box-shadow: 0 22px 60px rgba(78, 45, 24, .12);
}

/* How It Works */
.guide-main { width: min(1100px, calc(100% - 32px)); }
.guide-welcome { margin-bottom: 4px !important; font-size: 1rem !important; }
.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.guide-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(87, 37, 80, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.guide-item:hover,
.guide-item:focus-visible {
  border-color: rgba(233, 77, 19, .48);
  box-shadow: 0 8px 22px rgba(78, 45, 24, .1);
  transform: translateY(-1px);
  outline: none;
}
.guide-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f0e5ef;
  color: var(--purple);
  font-size: 1.35rem;
}
.guide-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
}
.guide-item small {
  display: block;
  color: #695850;
  font-size: .78rem;
  line-height: 1.42;
}
.guide-item b {
  color: var(--orange);
  font-size: .76rem;
  white-space: nowrap;
}
.project-storage-guide { margin-top: 18px; }
.project-storage-guide h2 {
  margin: 0 0 16px;
  color: var(--purple);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
}
.project-storage-guide p,
.project-storage-guide li { line-height: 1.52; }
.project-storage-guide ul { margin-bottom: 0; padding-left: 24px; }
.guide-note {
  max-width: 820px;
  margin: 22px auto 0;
  color: #6b5b53;
  text-align: center;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .guide-list { grid-template-columns: 1fr; }
  .guide-item { grid-template-columns: 42px minmax(0, 1fr); }
  .guide-icon { width: 42px; height: 42px; }
  .guide-item b { grid-column: 2; }
}
.capture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.capture-card {
  min-height: 210px;
  border: 2px dashed rgba(87, 37, 80, .26);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255,255,255,.62);
}
.capture-card h2 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--purple);
}
textarea, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  background: white;
}

.login-main {
  min-height: calc(100vh - 150px);
  display: grid;
  place-items: center;
}
.login-panel {
  width: min(520px, 100%);
}
.login-panel h1 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 8vw, 4rem);
  color: var(--purple);
}
.login-kicker {
  margin: 0 0 8px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.login-form {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.login-form label:not(.remember-line) { font-weight: 800; }
.login-form input[type="email"],
.login-form input[type="password"] {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.remember-line {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 6px 0;
}
.login-submit { width: 100%; }
.login-message {
  padding: 12px 14px;
  border: 1px solid #c36f5d;
  border-radius: 12px;
  background: #fff0e9;
  color: #772e21;
  font-weight: 700;
}
.login-note {
  margin: 18px 0 0;
  font-size: .9rem;
  color: #6e625b;
}
textarea { min-height: 130px; resize: vertical; }
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.drop-zone {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 250px;
  padding: 24px;
  border: 3px dashed rgba(233,77,19,.38);
  border-radius: 24px;
  background: #fff8eb;
  transition: transform .15s ease, background .15s ease;
}
.drop-zone.dragover {
  transform: scale(1.01);
  background: #fff0d6;
}
.drop-zone strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 8px;
}
#fileInput, #folderInput { display: none; }
.status {
  margin-top: 18px;
  min-height: 24px;
  font-weight: 700;
  color: var(--green);
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar input { max-width: 420px; }
.idea-list {
  display: grid;
  gap: 16px;
}
.idea-card {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  align-items: center;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
}
.preview {
  width: 120px;
  height: 90px;
  border-radius: 14px;
  overflow: hidden;
  background: #f1e5d2;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--purple);
  text-align: center;
  padding: 8px;
}
.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.idea-card h3 {
  margin: 0 0 7px;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--purple);
}
.meta {
  font-size: .92rem;
  opacity: .72;
  margin-bottom: 10px;
}
.note-text {
  white-space: pre-wrap;
  line-height: 1.55;
}
.capture-destination { display: inline-block; margin: 0 0 16px; padding: 7px 11px; border-radius: 999px; background: #eee4f0; color: var(--purple); font-size: .78rem; font-weight: 800; }
audio { width: min(100%, 420px); }
.empty {
  text-align: center;
  padding: 54px 20px;
  border: 2px dashed var(--line);
  border-radius: 24px;
}
.small { font-size: .9rem; opacity: .72; }
@media (max-width: 760px) {
  .capture-grid { grid-template-columns: 1fr; }
  .idea-card { grid-template-columns: 80px 1fr; }
  .preview { width: 80px; height: 80px; }
  .idea-actions { grid-column: 1 / -1; }
  .topbar { align-items: flex-start; flex-direction: column; }
}

/* ===== My Stack of Ideas: filing system ===== */
.stack-main { width: min(1220px, calc(100% - 28px)); margin-top: 18px; }
.stack-hero { margin-bottom: 16px; }
.stack-hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 0; }
.stack-hero p { font-size: .9rem; line-height: 1.25; }
.project-switcher {
  display: grid;
  grid-template-columns: auto minmax(220px, 320px) auto auto auto 30px;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,250,240,.94);
  box-shadow: 0 8px 24px rgba(78,45,24,.08);
}
.project-switcher label span { color: var(--purple); font-size: .76rem; font-weight: 800; }
.project-switcher select { width: 100%; padding: 9px 34px 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font: inherit; font-weight: 700; }
.project-help { display: grid; place-items: center; }
.project-help-button {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #b89aad;
  border-radius: 50%;
  background: #fffaf0;
  color: var(--purple);
  font: 800 1rem/1 Georgia, serif;
  cursor: pointer;
}
.project-help-button:hover,
.project-help-button:focus-visible { background: #f2e8f0; border-color: var(--purple); }
.project-file-help-copy { padding: 20px; }
.project-file-help-copy p, .project-file-help-copy li { color: #5d4d46; font-size: .78rem; line-height: 1.5; }
.project-file-help-copy ul { margin: 10px 0 0; padding-left: 20px; }
.project-file-help-copy li + li { margin-top: 6px; }
.delete-project-button { border-color: #d9aaa5; color: #8d2a23; }
.folder-tags .project-tag { background: #e8e0ef; color: var(--purple); font-weight: 700; }
.dialog-note { margin: 10px 0 0; color: #78675f; font-size: .7rem; line-height: 1.4; }
button:disabled { cursor: not-allowed; opacity: .48; transform: none !important; }
.ws-stack-v07 [hidden] { display: none !important; }
.stack-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 560px;
  background: rgba(255,250,240,.93);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 60px rgba(78,45,24,.12);
}
.folder-panel {
  padding: 18px 12px;
  background: rgba(245,232,211,.72);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.folder-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px 10px; }
.folder-panel-heading h2 { margin: 0; color: var(--purple); font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; }
.text-action { padding: 3px; border: 0; border-radius: 0; background: transparent; color: var(--purple); font-size: .74rem; }
.text-action:hover { text-decoration: underline; }
.folder-row, .folder-select {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 9px; border: 0; border-radius: 9px; background: transparent; color: var(--ink);
  text-align: left; font-size: .8rem; font-weight: 600;
}
.folder-row:hover, .folder-select:hover { background: rgba(255,255,255,.58); }
.folder-row.active, .folder-select.active { background: var(--orange); color: white; }
.folder-divider { height: 1px; margin: 10px 7px; background: var(--line); }
.count-pill { min-width: 22px; padding: 2px 6px; border-radius: 99px; background: rgba(87,37,80,.09); text-align: center; font-size: .65rem; }
.active .count-pill { background: rgba(255,255,255,.22); }
.folder-tree-row { display: grid; grid-template-columns: minmax(0,1fr) 26px; align-items: center; padding-left: calc(var(--folder-depth) * 13px); }
.folder-menu { padding: 2px; border: 0; background: transparent; color: #76645d; font-size: 1rem; }
.folder-menu:hover { color: var(--purple); }
.stack-workspace { min-width: 0; padding: 18px; }
.stack-tools { display: grid; grid-template-columns: minmax(240px, 1fr) auto auto; gap: 9px; align-items: center; margin-bottom: 10px; }
.stack-tools #searchBox { min-width: 0; padding: 10px 13px; border-radius: 12px; font-size: .86rem; }
.view-select { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; font-size: .7rem; color: #665d63; }
.view-select select { padding: 8px 26px 8px 9px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); font: inherit; }
.results-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 2px 10px; color: #6c5a52; font-size: .72rem; }
.results-line strong { color: var(--purple); font-size: .84rem; }
.compact-list { display: flex; flex-direction: column; gap: 6px; max-height: 62vh; overflow-y: auto; padding-right: 5px; }

.compact-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 10px;
  min-height: 58px;
  padding: 6px 10px;
  overflow: hidden;
  position: relative;
}

.compact-preview {
  width: 54px;
  height: 46px;
  border-radius: 9px;
  font-size: 0.68rem;
  overflow: hidden;
}

.idea-content {
  min-width: 0;
  overflow: hidden;
}

.compact-card h3 {
  margin: 0 0 2px;
  font-size: 0.9rem;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.idea-excerpt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.74rem;
  line-height: 1.2;
}

.folder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 2px;
  min-height: 0;
}

.folder-tags span {
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 5px;
  border-radius: 999px;
}

.card-right {
  min-width: 0;
  align-self: center;
  display: grid;
  grid-template-rows: auto auto;
  justify-items: end;
  row-gap: 3px;
  position: relative;
  z-index: 2;
}

.compact-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 4px;
  position: relative;
  z-index: 3;
}

.small-action {
  display: inline-flex;
  align-items: center;
  padding: 4px 6px;
  border: 1px solid #ddccb1;
  border-radius: 8px;
  background: #fff8eb;
  white-space: nowrap;
  cursor: pointer;
}

.small-action:hover {
  transform: translateY(-1px);
  background: white;
}

.open-action {
  color: var(--purple);
}

.delete-action {
  border-color: #d9aaa5;
  color: #8d2a23;
}

.tiny-meta {
  margin: 0;
  max-width: 100%;
  font-size: 0.62rem;
  line-height: 1.1;
  opacity: 0.62;
  white-space: nowrap;
}

.empty-mini { margin: 9px; color: #74635b; font-size: .7rem; line-height: 1.45; }
.ws-dialog { width: min(470px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 18px; background: var(--paper); box-shadow: 0 24px 80px rgba(36,26,24,.3); }
.ws-dialog::backdrop { background: rgba(36,26,24,.42); backdrop-filter: blur(3px); }
.ws-dialog form { padding: 20px; }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-heading h2 { margin: 0 0 12px; color: var(--purple); font-family: Georgia, "Times New Roman", serif; }
.dialog-close { padding: 4px 8px; background: transparent; color: #6f625d; font-size: 1.3rem; }
.ws-dialog label { display: grid; gap: 6px; margin: 12px 0; color: #5d4d46; font-size: .78rem; font-weight: 700; }
.ws-dialog input, .ws-dialog select { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; font: inherit; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; }
.dialog-subtitle { margin: -6px 0 12px; color: #6a5951; font-size: .78rem; }
.folder-choices { display: grid; gap: 5px; max-height: 290px; overflow-y: auto; padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.folder-choice { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; margin: 0 !important; padding: 7px 8px; border-radius: 7px; font-weight: 500 !important; }
.folder-choice:hover { background: #fff6e5; }
.folder-choice input { width: auto; margin: 0; }
@media (max-width: 900px) {
  .stack-shell { grid-template-columns: 190px minmax(0,1fr); }
  .compact-card { grid-template-columns: 54px minmax(0,1fr); }
  .compact-preview { width: 54px; }
  .card-right { grid-column: 1 / -1; align-items: flex-end; }
}
@media (max-width: 680px) {
  .project-switcher { grid-template-columns: 1fr; }
  .stack-shell { display: block; }
  .folder-panel { max-height: 220px; border-right: 0; border-bottom: 1px solid var(--line); }
  .stack-tools { grid-template-columns: 1fr 1fr; }
  .stack-tools #searchBox { grid-column: 1 / -1; }
  .compact-list { max-height: none; }
  .compact-card { grid-template-columns: 48px minmax(0,1fr); }
  .compact-preview { width: 48px; height: 48px; }
  .compact-actions { flex-wrap: wrap; }
  .tiny-meta { white-space: normal; text-align: right; }
}

/* ===== WritingScene 17 Corkboard ===== */
.corkboard-page { background: #f1e5d1; }
.corkboard-page .topbar { padding:8px 18px; }
.corkboard-brand { font-size:clamp(1.55rem,3vw,2.15rem); letter-spacing:-.045em; }
.corkboard-brand span:first-child { color:var(--orange); }
.corkboard-brand span:last-child { color:var(--purple); }
.corkboard-page .topnav { gap:6px; }
.corkboard-page .topnav .button { min-height:36px; padding:7px 12px; font-size:.8rem; }
.corkboard-main { width:min(1560px,calc(100% - 20px)); margin:10px auto 32px; }
.corkboard-heading { display:flex; align-items:end; justify-content:space-between; gap:14px; margin:0 3px 8px; }
.corkboard-area-open .corkboard-heading { display:none; }
.corkboard-heading h1 { margin:0; color:var(--purple); font-size:clamp(1.75rem,4vw,2.45rem); line-height:1; }
.corkboard-heading p { margin:.12rem 0 0; color:#6e584d; font-size:.82rem; }
.corkboard-kicker { color:#dc4c18 !important; font-size:.62rem !important; font-weight:900; letter-spacing:.13em; text-transform:uppercase; }
.corkboard-tools { display:flex; align-items:center; gap:10px; }
.corkboard-search input { width:min(300px,44vw); min-height:36px; padding:7px 12px; border:1px solid #bfa78e; border-radius:999px; background:#fffaf0; font:inherit; font-size:.8rem; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
.cork-surface { position:relative; padding:20px; overflow:hidden; border:8px solid #8e532d; border-radius:8px; background-color:#b87945; background-image:radial-gradient(#6d3e241c 1.4px,transparent 1.6px),radial-gradient(#f2c08a20 1.2px,transparent 1.4px),linear-gradient(115deg,#a96536,#c98b52 48%,#aa693a); background-position:0 0,7px 9px,0 0; background-size:13px 13px,17px 17px,100% 100%; box-shadow:inset 0 0 32px #51290c55,0 8px 20px #4827182e; }
.cork-surface:before { content:""; position:absolute; inset:8px; pointer-events:none; border:1px solid #e8b47855; }
.corkboard-area-grid { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:28px; }
.corkboard-loading { position:relative; grid-column:1/-1; display:grid; justify-items:center; gap:5px; min-height:132px; padding:34px 18px 22px; border-radius:2px; background:#fff8df; color:#71574b; text-align:center; box-shadow:3px 5px 12px #46220f55; }
.corkboard-loading strong { color:var(--purple); font:700 1.15rem Georgia,serif; }
.corkboard-loading small { font-size:.78rem; }
.loading-pin { position:absolute; top:12px; left:50%; width:13px; height:13px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#fff7ad,#dc4b18 48%,#8f250e); box-shadow:1px 2px 3px #4c241b88; transform:translateX(-50%); animation:corkboard-pulse 1.15s ease-in-out infinite; }
.corkboard-load-error { color:#8d2a23; }
@keyframes corkboard-pulse { 50% { transform:translateX(-50%) scale(1.25); box-shadow:1px 2px 8px #dc4b18aa; } }
.cork-area-card { position:relative; min-height:190px; padding:24px 18px 18px; border:0; border-radius:2px; background:#fff8df; color:#3f2538; text-align:left; box-shadow:3px 5px 12px #46220f55; cursor:pointer; transform:rotate(-.6deg); transition:transform .18s ease,opacity .18s ease; touch-action:manipulation; }
.cork-area-card:nth-child(even) { transform:rotate(.7deg); background:#f8efd8; }
.cork-area-card:hover,.cork-area-card:focus-visible { transform:rotate(0) translateY(-4px); outline:3px solid #5f2358; outline-offset:3px; }
.cork-area-card.no-match { opacity:.42; }
.pushpin,.mini-pin { position:absolute; z-index:2; left:50%; top:7px; width:14px; height:14px; border-radius:50%; background:radial-gradient(circle at 35% 30%,#fff7ad,#dc4b18 48%,#8f250e); box-shadow:1px 2px 3px #4c241b88; transform:translateX(-50%); }
.area-cover { display:block; width:100%; height:105px; object-fit:cover; margin-bottom:10px; border:6px solid white; box-shadow:0 2px 6px #56331d55; }
.area-paper { display:block; height:80px; margin-bottom:12px; background:repeating-linear-gradient(#fffdf1 0,#fffdf1 18px,#d8e6df 19px); border-bottom:1px solid #d8c8ac; }
.area-card-copy { display:grid; gap:4px; }
.area-card-copy strong { font-family:Georgia,serif; color:var(--purple); font-size:1.18rem; }
.area-card-copy small { min-height:1.2em; color:#684f42; }
.area-card-copy em { color:#8b6b56; font-size:.7rem; font-style:normal; font-weight:700; }
.corkboard-detail { display:grid; gap:9px; padding:14px; }
.corkboard-detail[hidden],.corkboard-deck[hidden] { display:none; }
.corkboard-area-nav { position:relative; display:flex; justify-content:flex-end; gap:5px; flex-wrap:wrap; }
.corkboard-area-nav .button { min-width:0; min-height:30px; padding:4px 8px; font-size:.66rem; }
.area-detail-head { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:7px 10px; padding:8px 10px; background:#fff8e4; box-shadow:2px 3px 8px #46220f44; }
.area-fields { grid-column:1/-1; }
.area-fields { display:grid; grid-template-columns:1fr 1fr minmax(150px,.7fr); gap:10px; }
.area-fields label { display:grid; gap:3px; color:#654e42; font-size:.65rem; font-weight:800; }
.area-fields input,.area-fields select,.picker-filters input,.picker-filters select { min-width:0; padding:7px 9px; border:1px solid #c3ad96; border-radius:8px; background:white; font:inherit; color:var(--ink); }
.area-actions { display:flex; gap:8px; flex-wrap:wrap; }
.area-actions { grid-column:1; }
.area-actions .button { min-height:32px; padding:6px 10px; font-size:.72rem; }
.area-fields input::placeholder { color:#95877f; opacity:1; }
.corkboard-deck { position:relative; display:grid; gap:7px; padding:10px 12px; background:#241a21e8; color:white; border-radius:7px; box-shadow:3px 4px 10px #3f1b0c55; }
.deck-title { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.deck-title strong { font-family:Georgia,serif; font-size:1.15rem; }
.deck-title span { color:#f6d8b3; font-size:.78rem; }
.picture-stage { display:grid; place-items:center; min-height:320px; padding:14px; background:#100d10; border-radius:6px; touch-action:pan-y; user-select:none; }
.picture-stage img { max-width:100%; max-height:58vh; object-fit:contain; pointer-events:none; }
.picture-stage p { margin:10px 0 0; color:#fff5df; text-align:center; }
.corkboard-note-viewer { max-width:48rem; }
.corkboard-note-text { max-height:min(62vh,38rem); overflow:auto; white-space:pre-wrap; line-height:1.6; padding:1rem; border:1px solid var(--line,#d8c8b0); border-radius:.75rem; background:#fffdf8; user-select:text; -webkit-user-select:text; }
.deck-controls { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:8px; }
.music-deck { grid-template-columns:minmax(125px,170px) minmax(240px,1fr) auto; align-items:center; padding:6px 8px; }
.music-deck .deck-title { display:grid; gap:3px; }
.music-deck audio { width:100%; height:34px; }
.music-deck .deck-controls { grid-column:auto; justify-content:flex-end; flex-wrap:nowrap; gap:4px; }
.music-deck .deck-controls .button { min-height:27px; padding:3px 7px; font-size:.64rem; }
.music-deck .repeat-control { white-space:nowrap; }
.repeat-control { display:flex; align-items:center; gap:5px; color:#f8ead5; font-size:.72rem; font-weight:700; }
.repeat-control select { padding:7px; border-radius:7px; }
.area-list-heading { position:relative; display:flex; justify-content:space-between; align-items:center; min-height:34px; padding:4px 9px; background:#fff8e4; }
.area-list-heading h2 { margin:0; color:var(--purple); }
.area-list-heading span { color:#765b4e; font-size:.75rem; font-weight:700; }
.corkboard-item-list { position:relative; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
.corkboard-item { position:relative; display:grid; grid-template-columns:42px minmax(0,1fr) auto; align-items:center; gap:7px; min-height:48px; padding:5px 8px; background:#fff8df; box-shadow:1px 2px 5px #46220f3b; }
.corkboard-item.audio-item { grid-template-columns:26px minmax(0,1fr) auto; min-height:30px; padding:2px 6px; }
.audio-item .cork-item-icon { width:24px; height:24px; font-size:.9rem; }
.audio-item .cork-item-copy small { display:none; }
.audio-item .mini-pin { width:6px; height:6px; top:3px; left:3px; }
.corkboard-item.current-track { outline:2px solid #e94d13; outline-offset:-2px; background:#fff0d8; }
.corkboard-item.is-playing { box-shadow:inset 5px 0 #e94d13,1px 2px 6px #46220f55; }
.corkboard-item.is-playing .cork-item-icon { color:#fff; background:var(--orange); }
.corkboard-item.is-playing [data-action="open"] { background:var(--orange); color:#fff; }
.corkboard-item>img { width:42px; height:36px; object-fit:cover; border:2px solid white; }
.cork-item-icon { display:grid; place-items:center; width:36px; height:36px; color:var(--purple); background:#efe2c8; font:700 1.2rem Georgia,serif; }
.mini-pin { left:10px; top:8px; width:9px; height:9px; transform:none; }
.cork-item-copy { display:grid; gap:3px; min-width:0; }
.cork-item-copy strong { overflow:hidden; color:#4f2149; text-overflow:ellipsis; white-space:nowrap; font-size:.78rem; }
.cork-item-copy small { color:#785f52; font-size:.66rem; }
.cork-item-actions { display:flex; gap:5px; flex-wrap:wrap; justify-content:end; }
.cork-item-actions button { min-height:27px; padding:3px 6px; border:1px solid #c4a88c; border-radius:999px; background:#fffaf0; color:#5b284f; font-size:.64rem; font-weight:700; cursor:pointer; touch-action:manipulation; }
.corkboard-empty { position:relative; display:grid; justify-items:center; gap:5px; padding:20px; color:#8a796f; background:#fff8df; }
.corkboard-empty[hidden] { display:none; }
.corkboard-empty strong { color:#75665e; }
.corkboard-page .toast { position:fixed; z-index:50; right:18px; bottom:18px; display:flex; align-items:center; gap:10px; max-width:min(430px,calc(100vw - 28px)); padding:10px 14px; border:1px solid #d5b896; border-radius:12px; background:#fff8e4; color:#4f2149; box-shadow:0 8px 24px #2d172844; font-size:.8rem; font-weight:800; opacity:0; pointer-events:none; transform:translateY(12px); transition:opacity .18s ease,transform .18s ease; }
.corkboard-page .toast.show { opacity:1; transform:translateY(0); }
.toast-record { display:none; flex:0 0 auto; width:25px; height:25px; border-radius:50%; background:radial-gradient(circle,#f05a21 0 13%,#f2c37b 14% 20%,#3b202f 21% 48%,#5d3a4e 49% 53%,#25151f 54%); box-shadow:0 1px 4px #2d172866; }
.toast.uploading .toast-record { display:block; animation:record-spin 1.15s linear infinite; }
@keyframes record-spin { to { transform:rotate(360deg); } }
.corkboard-picker { position:fixed; inset:auto; width:min(620px,calc(100vw - 24px)); min-width:min(340px,calc(100vw - 24px)); min-height:190px; max-width:calc(100vw - 12px); max-height:calc(100vh - 12px); margin:0; overflow:auto; resize:both; }
.corkboard-picker::backdrop { background:transparent; }
.picker-drag-handle { cursor:move; touch-action:none; user-select:none; }
.picker-window-actions { display:flex; align-items:center; gap:4px; }
.picker-window-button { display:grid; place-items:center; width:32px; height:32px; padding:0; border:1px solid #d2b99d; border-radius:50%; background:#fffaf0; color:var(--purple); font-size:1.05rem; font-weight:900; cursor:pointer; }
.corkboard-picker.minimized { width:280px !important; min-width:0; min-height:0; height:auto !important; resize:none; overflow:hidden; }
.corkboard-picker.minimized .picker-filters,.corkboard-picker.minimized .picker-list,.corkboard-picker.minimized .dialog-actions { display:none; }
.corkboard-picker.minimized form>header { margin-bottom:0; }
.picker-filters { display:grid; grid-template-columns:1fr 180px; gap:10px; margin:12px 0; }
.picker-list { display:grid; gap:5px; max-height:52vh; overflow:auto; padding:4px; }
.picker-row { display:grid; grid-template-columns:auto 26px minmax(0,1fr) auto; align-items:center; gap:8px; min-height:44px; padding:6px 8px; border:1px solid #e0cfb8; border-radius:8px; cursor:pointer; }
.picker-row input { width:20px; height:20px; }
.picker-row strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.picker-row small { color:#7b6457; }
.picker-empty { padding:22px; text-align:center; }

@media (max-width:1050px) {
  .area-detail-head { grid-template-columns:1fr; align-items:stretch; }
  .area-fields { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(160px,.7fr); }
  .area-actions { justify-content:flex-start; }
  .music-deck { grid-template-columns:minmax(120px,160px) minmax(220px,1fr); }
  .music-deck .deck-controls { grid-column:1/-1; }
  .corkboard-item-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:800px) {
  .corkboard-area-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
  .area-fields { grid-template-columns:1fr 1fr; }
  .area-fields label:last-child { grid-column:1/-1; }
  .picture-stage { min-height:260px; }
  .music-deck { grid-template-columns:1fr; }
  .music-deck .deck-controls { grid-column:auto; justify-content:center; }
}
@media (max-width:560px) {
  .corkboard-main { width:min(100% - 16px,1180px); }
  .corkboard-heading { align-items:stretch; flex-direction:column; }
  .corkboard-tools,.corkboard-search input { width:100%; }
  .cork-surface { padding:22px 14px; border-width:8px; }
  .corkboard-area-grid { grid-template-columns:1fr; }
  .cork-area-card { min-height:160px; }
  .area-fields { grid-template-columns:1fr; }
  .area-fields label:last-child { grid-column:auto; }
  .corkboard-item { grid-template-columns:54px minmax(0,1fr); }
  .corkboard-item>img,.cork-item-icon { width:50px; height:48px; }
  .cork-item-actions { grid-column:1/-1; justify-content:start; }
  .picker-filters { grid-template-columns:1fr; }
  .picker-row { grid-template-columns:auto 22px minmax(0,1fr); }
  .picker-row small { grid-column:3; }
  .corkboard-page .button,.corkboard-page button,.corkboard-page select,.corkboard-page input { min-height:44px; }
  .cork-item-actions button { min-width:44px; min-height:44px; }
  .corkboard-area-nav .button { flex:1 1 130px; min-width:0; }
  .corkboard-item-list { grid-template-columns:1fr; }
}
.folder-tags .archive-tag { background: #ead7d4; color: #8d2a23; }
.folder-tags .trash-tag { background: #e3e1df; color: #574f4b; }
.folder-tags .search-tag { background: #e5f1ed; color: #245f58; }

/* =========================================================
   WritingScene Stack v0.7 — compact browsing + quick preview
   ========================================================= */
.ws-stack-v07 .topbar { padding-top: 12px; padding-bottom: 12px; }
.ws-nav { align-items: center; }
.nav-button { border: 1px solid var(--line); }
.stack-shell-v07 { grid-template-columns: 210px minmax(0, 1fr); }
.folder-hint { margin: 14px 8px 4px; color: #87766e; font-size: .65rem; line-height: 1.35; }
.stack-tools-v07 { grid-template-columns: minmax(240px,1fr) auto auto auto auto auto; }
.display-switch { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: #fff9ef; }
.display-button { padding: 6px 9px; border-radius: 999px; background: transparent; color: #6f625d; font-size: .68rem; font-weight: 700; }
.display-button.active { background: var(--purple); color: white; }
.stack-view-switch { grid-column: 1 / span 3; width: max-content; max-width: 100%; }
.stack-view-switch .display-button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.add-files-button { padding: 8px 12px; font-size: .75rem; }
.add-folder-button { padding: 8px 12px; font-size: .75rem; }
.import-strip { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; padding: 8px 11px; border: 1px dashed rgba(233,77,19,.42); border-radius: 10px; background: rgba(255,248,235,.72); color: #6a5951; cursor: pointer; }
.import-strip strong { color: var(--orange); font-size: .78rem; }
.import-strip span { font-size: .68rem; }
.import-strip:hover, .import-strip:focus { background: #fff4df; outline: none; }
.import-strip.is-saving { opacity: .72; pointer-events: none; }
.import-strip.is-disabled { cursor: not-allowed; opacity: .48; pointer-events: none; }
.import-progress { display: grid; grid-template-columns: minmax(120px,1fr) auto; align-items: center; gap: 9px; margin: -2px 0 8px; color: #6a5951; font-size: .68rem; }
.import-progress[hidden] { display: none; }
.import-progress progress { width: 100%; accent-color: var(--orange); }
.bulk-bar { display: flex; align-items: center; gap: 6px; margin: 0 0 7px; padding: 6px 8px; border-radius: 9px; background: #f0e5ef; color: var(--purple); font-size: .7rem; }
.bulk-bar > span { margin-right: auto; font-weight: 700; }
.select-all-label { display: inline-flex; align-items: center; gap: 5px; color: #74635b; font-size: .67rem; }
.select-all-label input { margin: 0; }
.workspace-with-preview { min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 285px; gap: 10px; align-items: start; }
.workspace-with-preview .compact-list { max-height: 60vh; }
.preview-pane { position: sticky; top: 92px; min-width: 0; max-height: 60vh; overflow-y: auto; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,250,240,.96); }
.preview-pane-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 9px; }
.preview-kicker { display: block; margin-bottom: 2px; color: var(--orange); font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.preview-pane h2 { margin: 0; color: var(--purple); font-family: Georgia, "Times New Roman", serif; font-size: 1.05rem; line-height: 1.1; }
.preview-close { padding: 1px 5px; border: 0; background: transparent; color: #81716a; font-size: 1.2rem; }
.preview-body { min-height: 130px; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: white; font-size: .76rem; line-height: 1.45; }
.plain-text-file-editor { width: 100%; min-height: 260px; resize: vertical; box-sizing: border-box; padding: 12px; border: 2px solid #6b245f; border-radius: 9px; background: #fffefb; color: #261424; font: 15px/1.5 Consolas, "Courier New", monospace; }
.smart-find { position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: minmax(120px,1fr) 28px 28px; gap: 5px; align-items: center; margin: -2px -2px 9px; padding: 7px; border: 1px solid #d9c7ae; border-radius: 9px; background: #fff8e9; }
.smart-find input { min-width: 0; padding: 7px 9px; border: 1px solid #bca991; border-radius: 7px; font-size: .72rem; }
.smart-find button { min-height: 28px; padding: 2px; border: 1px solid #c9b89f; border-radius: 6px; background: white; color: var(--purple); font-weight: 800; }
.smart-find span { grid-column: 1 / -1; color: #74635b; font-size: .61rem; }
.document-text-preview mark { padding: 0 1px; background: #ffe08a; color: inherit; }
.document-text-preview mark.active { background: #f36b27; color: white; outline: 2px solid #8e2d08; }
.prominent-edit { order: -2; font-size: .78rem !important; }
.preview-more-actions { position: relative; }
.preview-more-actions summary { cursor: pointer; list-style: none; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: #fff7e9; color: var(--purple); font-size: .68rem; font-weight: 800; }
.preview-more-actions summary::-webkit-details-marker { display: none; }
.preview-more-menu { position: absolute; right: 0; z-index: 20; display: grid; gap: 5px; min-width: 175px; margin-top: 5px; padding: 8px; border: 1px solid #d7c6ad; border-radius: 10px; background: #fffaf0; box-shadow: 0 12px 28px rgba(36,26,24,.2); }
.preview-more-menu .button { width: 100%; text-align: left; }
.version-dialog { width: min(620px,calc(100vw - 32px)); max-height: 82vh; padding: 24px; border: 1px solid #d8c6a7; border-radius: 18px; background: #fffaf0; color: #32142d; }
.version-dialog::backdrop { background: rgba(38,20,36,.45); }
.version-dialog h2 { margin-top: 0; color: var(--purple); font-family: Georgia,"Times New Roman",serif; }
.version-list { display: grid; gap: 8px; margin: 16px 0; }
.version-list > div { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 7px; align-items: center; padding: 9px; border: 1px solid #e0d1bb; border-radius: 9px; background: white; }
.version-list span small { display: block; color: #806f67; }
.version-read { max-height: 220px; overflow: auto; margin: -4px 0 8px; padding: 10px; white-space: pre-wrap; border: 1px solid #dfcfb8; border-radius: 8px; background: #fff; color: #2b2027; font: 13px/1.45 Consolas,"Courier New",monospace; }
.empty-preview { display: grid; place-items: center; color: #8a7a72; text-align: center; }
.note-preview-text { white-space: pre-wrap; }
.pane-image { display: block; width: 100%; max-height: 310px; object-fit: contain; border-radius: 7px; }
.pane-media, .pane-video { width: 100%; }
.pane-video { max-height: 270px; background: #171717; border-radius: 7px; }
.file-preview-placeholder { min-height: 120px; display: grid; place-items: center; gap: 5px; text-align: center; color: #67564f; }
.file-preview-placeholder span { font-size: 2rem; }
.file-preview-placeholder small { color: #8a7a72; }
.preview-meta { display: grid; gap: 4px; margin-top: 8px; }
.preview-meta div { display: grid; grid-template-columns: 55px minmax(0,1fr); gap: 6px; font-size: .64rem; }
.preview-meta strong { color: #786860; }
.preview-meta span { overflow-wrap: anywhere; color: #54463f; }
.preview-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 9px; }
.preview-actions .button { padding: 7px 10px; font-size: .68rem; }
.drop-overlay { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; background: rgba(87,37,80,.18); backdrop-filter: blur(2px); pointer-events: none; }
.drop-overlay[hidden] { display: none; }
.drop-overlay > div { padding: 28px 38px; border: 3px dashed rgba(233,77,19,.62); border-radius: 18px; background: #fff9ef; text-align: center; box-shadow: 0 18px 60px rgba(36,26,24,.2); }
.drop-overlay strong { display: block; color: var(--purple); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.drop-overlay span { color: #74635b; font-size: .82rem; }
.hover-peek { position: fixed; z-index: 6000; width: 305px; max-height: 170px; overflow: hidden; padding: 10px; border: 1px solid #d8c6a7; border-radius: 10px; background: #fffaf0; box-shadow: 0 12px 28px rgba(36,26,24,.18); pointer-events: none; }
.hover-peek[hidden] { display: none; }
.hover-peek img { float: left; width: 64px; height: 64px; margin-right: 9px; object-fit: cover; border-radius: 7px; }
.hover-peek strong { display: block; margin-bottom: 4px; color: var(--purple); font-size: .76rem; }
.hover-peek span { color: #665750; font-size: .68rem; line-height: 1.35; }
@media (hover: none) {
  .hover-peek { display: none !important; }
}
.stack-toast { position: fixed; right: 22px; bottom: 22px; z-index: 7000; padding: 10px 14px; border-radius: 10px; background: var(--purple); color: white; box-shadow: 0 10px 28px rgba(36,26,24,.2); font-size: .76rem; }
.stack-toast[hidden] { display: none; }

.ws-stack-v07 .compact-card { grid-template-columns: 20px 24px 46px minmax(0,1fr) auto; min-height: 45px; padding: 4px 7px; column-gap: 7px; border-radius: 9px; }
.ws-stack-v07 .compact-preview { width: 46px; height: 36px; border-radius: 7px; padding: 2px; }
.ws-stack-v07 .compact-preview .type-icon { display: block; font-size: 1rem; line-height: 1; }
.ws-stack-v07 .compact-preview small { display: block; margin-top: 1px; font-size: .48rem; line-height: 1; }
.idea-select-wrap { display: grid; place-items: center; }
.idea-select { width: 15px; height: 15px; margin: 0; }
.reorder-handle { width: 20px; height: 30px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #8a7a72; font-size: .85rem; touch-action: none; cursor: grab; }
.reorder-handle:not(:disabled):hover, .reorder-handle:not(:disabled):focus { background: #f0e5ef; color: var(--purple); }
.reorder-handle:disabled { visibility: hidden; }
.idea-card.is-reordering { opacity: .76; outline: 2px dashed var(--orange); cursor: grabbing; }
.ws-stack-v07 .compact-card h3 { margin-bottom: 1px; font-size: .78rem; }
.ws-stack-v07 .idea-excerpt { font-size: .64rem; }
.ws-stack-v07 .folder-tags { margin-top: 1px; }
.ws-stack-v07 .folder-tags span { padding: 1px 4px; font-size: .52rem; }
.ws-stack-v07 .small-action { padding: 3px 5px; border-radius: 6px; font-size: .58rem; }
.ws-stack-v07 .tiny-meta { font-size: .51rem; }
.ws-stack-v07 .card-right { row-gap: 2px; }
.idea-card.is-selected { background: #f2e7f1; border-color: rgba(87,37,80,.35); box-shadow: inset 3px 0 0 var(--purple); }
.idea-card.is-open-elsewhere { background: #ecebea; border-color: #bdb8b4; box-shadow: inset 3px 0 0 #746f6b; }
.idea-card.is-open-elsewhere.is-selected { background: #e4dce5; box-shadow: inset 3px 0 0 var(--purple); }
.folder-tags .open-tab-indicator { min-width: 18px; background: #d8d5d2; color: #4f4b48; text-align: center; font-weight: 900; }
.folder-select.drop-ready { outline: 2px dashed var(--orange); outline-offset: -2px; background: #fff0d6; color: var(--ink); }

.detailed-list .detailed-card { min-height: 82px; padding-top: 8px; padding-bottom: 8px; }
.detailed-list .detailed-card .compact-preview { width: 64px; height: 62px; }
.detailed-list .detailed-card { grid-template-columns: 20px 24px 64px minmax(0,1fr) auto; }
.detailed-list .detailed-card h3 { font-size: .92rem; }
.detailed-list .detailed-card .idea-excerpt { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .72rem; }
.detailed-list .detailed-card .folder-tags span { font-size: .58rem; }

@media (max-width: 1150px) {
  .stack-tools-v07 { grid-template-columns: minmax(220px,1fr) auto auto; }
  .display-switch, .add-files-button, .add-folder-button { justify-self: start; }
  .workspace-with-preview { grid-template-columns: minmax(0,1fr) 245px; }
}
@media (max-width: 900px) {
  .stack-shell-v07 { grid-template-columns: 180px minmax(0,1fr); }
  .workspace-with-preview { display: block; }
  .preview-pane { position: static; max-height: none; margin-top: 10px; }
  .ws-stack-v07 .compact-card, .detailed-list .detailed-card { grid-template-columns: 20px 22px 48px minmax(0,1fr); }
  .ws-stack-v07 .card-right { grid-column: 3 / -1; justify-items: start; }
  .ws-stack-v07 .tiny-meta { white-space: normal; }
}

.operation-status { position: fixed; inset: auto 22px 22px auto; z-index: 7200; display: flex; align-items: center; gap: 9px; max-width: min(360px, calc(100vw - 32px)); padding: 12px 15px; border-radius: 12px; background: #2f2330; color: white; box-shadow: 0 12px 34px rgba(36,26,24,.28); font-size: .78rem; }
.operation-status[hidden] { display: none; }
.operation-hourglass { display: inline-block; font-size: 1.1rem; animation: ws-hourglass 1.1s ease-in-out infinite; }
@keyframes ws-hourglass { 50% { transform: rotate(180deg); } }
.audio-queue { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto auto auto; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 10px; border: 1px solid rgba(87,37,80,.2); border-radius: 11px; background: #f3e9f2; color: var(--purple); font-size: .7rem; }
.audio-queue[hidden] { display: none; }
.audio-queue audio { width: 100%; min-width: 150px; height: 34px; }
.audio-queue > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
@media (max-width: 680px) {
  .audio-queue { grid-template-columns: auto 1fr auto auto; }
  .audio-queue audio { grid-column: 1 / -1; grid-row: 1; }
  .operation-status { left: 16px; right: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .operation-hourglass { animation: none; }
}
@media (max-width: 680px) {
  .stack-shell-v07 { display: block; }
  .stack-tools-v07 { grid-template-columns: 1fr 1fr; }
  .stack-tools-v07 #searchBox { grid-column: 1 / -1; }
  .stack-view-switch { grid-column: 1 / -1; }
  .import-strip { align-items: flex-start; flex-direction: column; gap: 2px; }
  .bulk-bar { flex-wrap: wrap; }
  .bulk-bar > span { width: 100%; }
}

/* v0.8 OneDrive storage status */
.storage-status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 6px 9px;
  border: 1px solid rgba(47, 114, 105, .28);
  border-radius: 999px;
  background: rgba(235, 248, 244, .82);
  color: var(--green);
  font-size: .72rem;
  font-weight: 700;
}

/* =========================================================
   WritingScene v16.19 — compact working surface
   More of the user's work, less interface.
   ========================================================= */
.ws-stack-v19 .stack-main {
  width: min(1320px, calc(100% - 18px));
  margin-top: 8px;
}
.ws-stack-v19 .stack-hero { display: none; }
.ws-stack-v19 .topbar { padding-top: 8px; padding-bottom: 8px; }
.ws-stack-v19 .topbar .brand { font-size: clamp(1.45rem, 3vw, 2rem); }
.ws-stack-v19 .topnav { gap: 7px; }
.ws-stack-v19 .topnav .button { padding: 7px 11px; font-size: .73rem; }
.ws-stack-v19 .project-switcher {
  grid-template-columns: auto minmax(210px, 300px) auto auto auto minmax(145px, 1fr);
  gap: 7px;
  margin-bottom: 7px;
  padding: 7px 10px;
  border-radius: 12px;
}
.ws-stack-v19 .project-switcher select { padding-top: 7px; padding-bottom: 7px; }
.ws-stack-v19 .project-switcher .button { padding: 7px 10px; font-size: .72rem; }
.ws-stack-v19 .stack-shell { min-height: 620px; border-radius: 16px; }
.ws-stack-v19 .stack-shell-v07 { grid-template-columns: 190px minmax(0, 1fr); }
.ws-stack-v19 .folder-panel { padding: 10px 8px; }
.ws-stack-v19 .folder-panel-heading { padding-bottom: 6px; }
.ws-stack-v19 .folder-row,
.ws-stack-v19 .folder-select { padding-top: 6px; padding-bottom: 6px; }
.ws-stack-v19 .folder-divider { margin-top: 7px; margin-bottom: 7px; }
.ws-stack-v19 .folder-hint { margin-top: 8px; font-size: .58rem; }
.ws-stack-v19 .stack-workspace { padding: 9px; }
.ws-stack-v19 .stack-tools-v07 { gap: 6px; margin-bottom: 5px; }
.ws-stack-v19 .stack-tools #searchBox { padding: 7px 10px; border-radius: 9px; }
.ws-stack-v19 .view-select select { padding-top: 6px; padding-bottom: 6px; }
.ws-stack-v19 .display-button { padding: 5px 8px; }
.ws-stack-v19 .storage-status { padding: 5px 8px; font-size: .65rem; }
.ws-stack-v19 .import-strip { display: none; }
.ws-stack-v19 .results-line { padding-top: 4px; padding-bottom: 5px; }
.ws-stack-v19 .compact-list { gap: 3px; max-height: 69vh; }
.ws-stack-v19 .workspace-with-preview .compact-list { max-height: 69vh; }
.ws-stack-v19 .compact-card {
  grid-template-columns: 17px 20px 40px minmax(150px, 1fr) auto;
  min-height: 43px;
  padding: 3px 6px;
  column-gap: 5px;
  border-radius: 7px;
}
.ws-stack-v19 .compact-preview { width: 40px; height: 32px; }
.ws-stack-v19 .compact-card h3 {
  max-width: 38ch;
  font-size: .75rem;
}
.ws-stack-v19 .idea-excerpt { font-size: .59rem; }
.ws-stack-v19 .folder-tags {
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}
.ws-stack-v19 .folder-tags span { flex: 0 0 auto; max-width: 110px; }
.ws-stack-v19 .tag-overflow-count { font-weight: 800; }
.ws-stack-v19 .small-action { padding: 2px 4px; font-size: .54rem; }

/* v16.20 safe filing, ranked search, and restoration controls */
.search-highlight { background: #ffe36e; color: #3d2138; border-radius: 2px; padding: 0 1px; }
.search-everywhere-button.active,
.restore-all-button { background: var(--orange); color: #fff; border-color: var(--orange); }
.results-actions { display: flex; align-items: center; gap: 8px; }
.folder-count { white-space: nowrap; }
.duplicate-review-button { display: block; margin: 8px 4px 2px; color: var(--purple); font-weight: 800; }
.duplicate-tag { background: #fff0bd; color: #7a3e00; border: 1px solid #efb85d; }
.idea-card.is-duplicate { box-shadow: inset 3px 0 0 #ef9b27; }
.ws-stack-v19 .tiny-meta { font-size: .48rem; }
.ws-stack-v19 .reorder-handle { width: 17px; height: 27px; }
.file-folder-menu { position: relative; justify-self: start; }
.file-folder-menu summary { list-style: none; cursor: pointer; }
.file-folder-menu summary::-webkit-details-marker { display: none; }
.file-folder-options {
  position: absolute;
  z-index: 50;
  top: calc(100% + 5px);
  right: 0;
  display: grid;
  min-width: 135px;
  gap: 5px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffaf0;
  box-shadow: 0 10px 28px rgba(36,26,24,.18);
}
.search-action-group { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.search-help-button { color: var(--plum); }
.file-folder-options .button { width: 100%; justify-content: flex-start; }
.mobile-preview-slot:empty { display: none; }

@media (max-width: 1100px) {
  .ws-stack-v19 .stack-shell-v07 { grid-template-columns: 178px minmax(0, 1fr); }
  .ws-stack-v19 .workspace-with-preview { display: block; }
  .ws-stack-v19 .mobile-preview-slot { margin-top: 9px; }
  .ws-stack-v19 .mobile-preview-slot .preview-pane {
    position: static;
    max-height: 320px;
    margin: 0;
    padding: 8px;
    border-radius: 9px;
  }
  .ws-stack-v19 .mobile-preview-slot .preview-body { min-height: 78px; padding: 6px; }
  .ws-stack-v19 .mobile-preview-slot .preview-meta div { grid-template-columns: 42px minmax(0,1fr); }
  .ws-stack-v19 .compact-card,
  .ws-stack-v19 .detailed-list .detailed-card {
    grid-template-columns: 17px 20px 40px minmax(120px,1fr) auto;
  }
  .ws-stack-v19 .card-right { grid-column: auto; justify-items: end; }
  .ws-stack-v19 .tiny-meta { white-space: nowrap; }
}

@media (max-width: 760px) {
  .ws-stack-v19 .project-switcher { grid-template-columns: auto minmax(170px,1fr) auto; }
  .ws-stack-v19 .project-switcher > label,
  .ws-stack-v19 #renameProjectButton,
  .ws-stack-v19 #deleteProjectButton { display: none; }
  .ws-stack-v19 .stack-shell-v07 { display: block; }
  .ws-stack-v19 .folder-panel { max-height: none; border-right: 0; border-bottom: 1px solid var(--line); }
  .ws-stack-v19 .folder-hint { display: none; }
  .ws-stack-v19 .mobile-preview-slot .preview-pane { max-height: none; }
}

@media (max-width: 680px) {
  .ws-stack-v19 .topbar { flex-direction: row; align-items: center; }
  .ws-stack-v19 .topnav .nav-button { display: none; }
  .ws-stack-v19 .project-switcher { grid-template-columns: minmax(0,1fr) auto; }
  .ws-stack-v19 .project-switcher #newProjectButton { padding-inline: 8px; }
  .ws-stack-v19 .stack-tools-v07 { grid-template-columns: minmax(0,1fr) auto auto; }
  .ws-stack-v19 .stack-tools-v07 #searchBox { grid-column: 1 / -1; }
  .ws-stack-v19 .stack-view-switch { grid-column: 1; }
  .ws-stack-v19 .compact-card,
  .ws-stack-v19 .detailed-list .detailed-card {
    grid-template-columns: 17px 20px 38px minmax(0,1fr);
    min-height: 46px;
  }
  .ws-stack-v19 .compact-preview { width: 38px; height: 31px; }
  .ws-stack-v19 .card-right {
    grid-column: 2 / -1;
    grid-row: 2;
    width: 100%;
    justify-items: stretch;
  }
  .ws-stack-v19 .compact-actions {
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 3px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .ws-stack-v19 .compact-actions .small-action { flex: 0 0 auto; }
  .ws-stack-v19 .tiny-meta { display: none; }
}
.storage-status a { color: inherit; font: inherit; text-decoration: none; }

/* WritingScene v16.21 — colourful 1970s Resources hub */
.resources-page { min-height: 100vh; background: #f3e2c7; color: #301f2f; }
.resources-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .25; background-image: radial-gradient(#8f6c4c 0.45px, transparent 0.65px); background-size: 5px 5px; }
.resources-topbar { position: relative; z-index: 2; }
.resources-main { position: relative; z-index: 1; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 20px 0 46px; }
.resources-intro { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 24px; align-items: center; min-height: 155px; padding: 22px 30px; overflow: hidden; border: 1px solid #d9b98e; border-radius: 24px 24px 9px 9px; background: linear-gradient(120deg,#fff8e9 0 67%,#efd0af 67%); box-shadow: 0 13px 34px rgba(81,49,35,.12); }
.resources-intro h1 { margin: 0; color: var(--purple); font-family: Georgia,serif; font-size: clamp(3rem,7vw,5.5rem); line-height: .9; }
.resources-intro p { max-width: 700px; margin: 10px 0 0; font-size: 1rem; }
.resource-eyebrow,.section-title-row > div > span { color: var(--orange); font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.retro-dots { position: absolute; right: 255px; top: 0; width: 210px; height: 150px; }
.retro-dots i { position: absolute; display: block; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.retro-dots i:nth-child(1){width:58px;height:58px;left:15px;top:21px;background:#d84616}.retro-dots i:nth-child(2){width:28px;height:28px;left:87px;top:8px;background:#e8a500}.retro-dots i:nth-child(3){width:18px;height:18px;left:126px;top:51px;background:#2f876f}.retro-dots i:nth-child(4){width:10px;height:10px;left:79px;top:87px;background:#642457}.retro-dots i:nth-child(5){width:34px;height:34px;left:143px;top:101px;background:#367aa0}
.resource-index-card { transform: rotate(1.4deg); display: grid; gap: 6px; padding: 20px 22px 18px 44px; border: 1px solid #d6b679; border-radius: 5px; background: repeating-linear-gradient(#fff5c9 0 25px,#dfc992 26px,#fff5c9 27px); box-shadow: 4px 7px 0 rgba(107,65,42,.13); font-family: Georgia,serif; }
.resource-index-card::before { content: "•"; position: absolute; margin-left: -29px; margin-top: -3px; color: #c84a27; font-size: 1.5rem; }
.resource-index-card strong { color: var(--purple); font-size: 1.05rem; }.resource-index-card span{font-size:.82rem;line-height:1.45}
.resource-search-panel,.creative-tools,.bookmark-panel { margin-top: 14px; padding: 18px 20px; border: 1px solid #ddc4a3; border-radius: 12px; background: rgba(255,250,239,.94); box-shadow: 0 8px 20px rgba(73,46,33,.08); }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 12px; }.section-title-row h2{margin:1px 0 0;color:var(--purple);font-family:Georgia,serif;font-size:1.55rem}.section-title-row small{color:#725f59}
.resource-search-form { display: grid; grid-template-columns: 175px minmax(0,1fr) auto; gap: 8px; }.resource-search-form input,.resource-search-form select,.bookmark-controls input,.bookmark-controls select,.tools-title-row select,.bookmark-form input{width:100%;padding:10px 12px;border:1px solid #cfbda8;border-radius:10px;background:#fff;color:#301f2f;font:inherit}.resource-search-form input:focus,.resource-search-form select:focus,.bookmark-controls input:focus,.bookmark-form input:focus{outline:3px solid rgba(239,78,19,.16);border-color:var(--orange)}
.tools-title-row select { width: 190px; padding-block: 8px; }.tool-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.tool-card{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:9px;align-items:center;min-height:68px;padding:9px 11px;border:1px solid #e1cab0;border-radius:13px;background:#fffdf7;color:inherit;text-decoration:none;box-shadow:0 3px 0 #ead5bb;transition:transform .14s ease,box-shadow .14s ease}.tool-card:hover,.tool-card:focus-visible{transform:translateY(-2px) rotate(-.25deg);box-shadow:0 7px 0 #e7c7a0;outline:none}.tool-card strong,.tool-card small{display:block}.tool-card strong{color:var(--purple);font-family:Georgia,serif}.tool-card small{margin-top:2px;color:#75625c;font-size:.7rem;line-height:1.25}.tool-card i{color:var(--orange);font-style:normal}.tool-badge{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#fff;font-size:.78rem;box-shadow:inset 0 0 0 2px rgba(255,255,255,.28)}.badge-green{background:#287a66}.badge-coral{background:#bd4e2f}.badge-blue{background:#32749b}.badge-orange{background:#dd6b17}.badge-red{background:#c43827}.badge-purple{background:#6b285d}.badge-gold{background:#bd8500}.affiliate-note{margin:12px 2px 0;color:#76655f;font-size:.68rem}
.bookmark-title-row { align-items: center; }.link-drop-zone{display:grid;place-items:center;gap:2px;min-height:70px;padding:12px;border:2px dashed #e09b69;border-radius:13px;background:#fff5e8;text-align:center;cursor:pointer}.link-drop-zone strong{color:var(--orange);font-family:Georgia,serif;font-size:1rem}.link-drop-zone span{color:#725f59;font-size:.74rem}.link-drop-zone.drop-ready{border-color:#2f876f;background:#eaf6ef;transform:scale(1.005)}
.bookmark-form{display:grid;grid-template-columns:1fr 1.25fr 1fr auto;gap:9px;align-items:end;margin-top:10px;padding:12px;border-radius:12px;background:#f4e7d4}.bookmark-form label{display:grid;gap:4px;color:var(--purple);font-size:.68rem;font-weight:800}.bookmark-form-actions{display:flex;gap:6px;padding-bottom:1px}.bookmark-controls{display:grid;grid-template-columns:minmax(0,1fr) 190px;gap:8px;margin-top:12px}.bookmark-status{min-height:20px;padding:6px 2px 0;color:#74615b;font-size:.7rem}.bookmark-list{display:grid;gap:12px}.bookmark-group h3{margin:0 0 6px;padding-bottom:4px;border-bottom:2px solid #e6c59b;color:var(--purple);font-family:Georgia,serif;font-size:1.05rem}.bookmark-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.bookmark-card{display:grid;grid-template-columns:minmax(0,1fr) 28px;border:1px solid #dfcbb0;border-radius:10px;background:#fff}.bookmark-open{display:grid;gap:2px;padding:9px 11px;border:0;background:transparent;text-align:left;cursor:pointer}.bookmark-open strong{overflow:hidden;color:#54204b;text-overflow:ellipsis;white-space:nowrap}.bookmark-open small{overflow:hidden;color:#75625d;text-overflow:ellipsis;white-space:nowrap}.bookmark-delete{align-self:center;width:24px;height:24px;border:0;border-radius:50%;background:#f7e5df;color:#a53e27;cursor:pointer}.resource-empty{display:grid;place-items:center;gap:4px;min-height:90px;border:1px dashed #ddc5a6;border-radius:11px;color:#75615b;text-align:center}.resource-empty strong{color:var(--purple);font-family:Georgia,serif}
@media(max-width:900px){.resources-intro{grid-template-columns:1fr 240px}.retro-dots{right:215px}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bookmark-form{grid-template-columns:1fr 1fr}.bookmark-form-actions{grid-column:1/-1}.bookmark-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.resources-main{width:min(100% - 18px,1180px);padding-top:9px}.resources-intro{grid-template-columns:1fr;padding:18px;background:#fff8e9}.resources-intro h1{font-size:3.2rem}.resource-index-card{display:none}.retro-dots{right:-45px;opacity:.58}.resource-search-panel,.creative-tools,.bookmark-panel{padding:14px 12px}.resource-search-form{grid-template-columns:1fr auto}.resource-search-form select{grid-column:1/-1}.tools-title-row{align-items:start}.tools-title-row select{width:145px}.tool-grid,.bookmark-grid{grid-template-columns:1fr}.bookmark-form,.bookmark-controls{grid-template-columns:1fr}.bookmark-form-actions{grid-column:auto}.section-title-row small{display:none}}
@media print{.resources-page{background:#fff}.resources-page::before,.resources-topbar,.retro-dots,.resource-search-panel,.link-drop-zone,.bookmark-form,.bookmark-controls,.bookmark-delete,.affiliate-note{display:none!important}.resources-main{width:100%;padding:0}.resources-intro{display:block;min-height:0;padding:0 0 14px;border:0;box-shadow:none;background:#fff}.resources-intro h1{font-size:32pt}.resource-index-card{display:none}.creative-tools,.bookmark-panel{margin-top:10px;padding:10px;border:1px solid #aaa;box-shadow:none;background:#fff}.tool-grid,.bookmark-grid{grid-template-columns:repeat(2,1fr)}.tool-card{display:block;min-height:0;box-shadow:none;break-inside:avoid}.tool-card::after{content:attr(href);display:block;margin-top:3px;color:#555;font-size:7pt;overflow-wrap:anywhere}.tool-badge,.tool-card i{display:none}.bookmark-card{break-inside:avoid}.bookmark-delete{display:none}.bookmark-open small{white-space:normal;overflow-wrap:anywhere}}

/* WritingScene v16.22 — compact personal Resources library */
.resources-v22 .resources-topbar { min-height: 66px; padding-block: 9px; }
.resources-brand span:first-child { color: var(--orange); }
.resources-brand span:nth-child(2) { color: var(--purple); }
.resources-brand sup { margin-left: 2px; color: #e5a000; font-size: .55em; }
.resources-v22 .resources-main { padding-top: 10px; }
.resources-v22 .resources-intro { grid-template-columns: minmax(0,1fr) 255px; min-height: 105px; padding: 13px 22px; border-radius: 22px 22px 8px 8px; background: linear-gradient(122deg,#fff8e9 0 70%,#efd0af 70%); }
.resources-v22 .resources-intro::after { content:""; position:absolute; right:205px; bottom:-42px; width:155px; height:85px; border-radius:50%; background:rgba(224,111,49,.12); transform:rotate(-12deg); }
.resources-v22 .resources-intro h1 { font-size: clamp(2.35rem,5vw,3.8rem); line-height:.9; }
.resources-v22 .resources-intro h1 b { color:#dc8d00; font-size:.38em; vertical-align:top; }
.resources-v22 .resources-intro p { margin-top:6px; font-size:.84rem; }
.resources-v22 .resource-index-card { width:auto; padding:10px 15px; transform:rotate(1.5deg); }
.resources-v22 .resource-index-card strong { font-size:1rem; }
.resources-v22 .resource-index-card span { margin-top:3px; font-size:.72rem; line-height:1.3; }
.resources-v22 .retro-dots { right:235px; transform:scale(.74); transform-origin:center; }
.resources-v22 .retro-dots i:last-child { display:none; }
.resources-v22 .resource-search-panel,.resources-v22 .creative-tools,.resources-v22 .bookmark-panel { margin-top:10px; padding:12px 16px; position:relative; overflow:hidden; }
.resources-v22 .saved-resource-panel::before,.resources-v22 .creative-tools::after { content:""; position:absolute; pointer-events:none; border-radius:50%; }
.resources-v22 .saved-resource-panel::before { width:180px;height:75px;right:-70px;top:-45px;background:rgba(70,145,123,.10); }
.resources-v22 .creative-tools::after { width:210px;height:90px;left:-95px;bottom:-64px;background:rgba(239,78,19,.08); }
.resources-v22 .section-title-row h2 { font-size:1.45rem; }
.resources-v22 .section-title-row>div>span { font-size:.62rem; }
.resources-v22 .resource-search-form input,.resources-v22 .resource-search-form select { padding:7px 10px; }
.resources-v22 .resource-search-form .button { padding:7px 17px; }
.resources-v22 .tool-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.resources-v22 .tool-card { grid-template-columns:34px minmax(0,1fr) auto; min-height:52px; padding:6px 8px; gap:7px; border-radius:10px; }
.resources-v22 .tool-badge { width:31px;height:31px; overflow:hidden; }
.resources-v22 .tool-badge img { display:block; width:22px;height:22px; object-fit:contain; border-radius:5px; background:#fff; }
.resources-v22 .tool-badge em { display:none; color:#fff; font-size:.62rem; font-style:normal; }
.resources-v22 .tool-card strong { font-size:.83rem; }
.resources-v22 .tool-card small { font-size:.59rem; line-height:1.15; }
.resources-v22 .affiliate-note { margin-top:7px; font-size:.6rem; }
.resources-v22 .bookmark-controls { grid-template-columns:minmax(0,1fr) 170px 145px; margin-top:7px; }
.resources-v22 .bookmark-controls input,.resources-v22 .bookmark-controls select { padding:7px 9px; font-size:.74rem; }
.resource-card-viewport { max-height:196px; overflow-y:auto; padding-right:5px; scrollbar-color:#bb6b38 #f1dfc7; }
.personal-resource-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
.personal-resource-card { position:relative; display:grid; grid-template-columns:34px minmax(0,1fr) auto; grid-template-rows:1fr auto; gap:3px 7px; min-height:87px; padding:7px; border:1px solid #ddc2a2; border-radius:11px; background:#fffdf7; box-shadow:0 3px 0 #ead5bb; }
.personal-resource-card.is-favorite { border-color:#dfa21c; background:#fffaf0; }
.personal-resource-icon { grid-row:1/3; align-self:start; display:grid; place-items:center; width:32px;height:32px;border:0;border-radius:50%;background:var(--purple);color:#fff;font-size:.68rem;font-weight:800;cursor:pointer; }
.personal-resource-copy { min-width:0; }
.personal-resource-title { width:100%;padding:0;border:0;background:transparent;color:var(--purple);font-family:Georgia,serif;font-weight:800;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer; }
.personal-resource-copy small { display:-webkit-box;margin-top:2px;color:#74615b;font-size:.59rem;line-height:1.2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.resource-type-label { align-self:end;color:#7d665f;font-size:.51rem;font-weight:800;text-transform:uppercase; }
.personal-resource-actions { grid-column:3;grid-row:1/3;display:flex;flex-direction:column;align-items:center;gap:1px; }
.personal-resource-actions button { padding:1px 3px;border:0;background:transparent;color:#6c295f;font-size:.59rem;cursor:pointer; }
.personal-resource-actions button:first-child { color:#c68300;font-size:.9rem; }
.resource-dialog { width:min(680px,calc(100% - 24px)); }
.resource-dialog form { display:grid;gap:9px; }
.resource-dialog label { display:grid;gap:4px;color:var(--purple);font-size:.7rem;font-weight:800; }
.resource-dialog input,.resource-dialog select,.resource-dialog textarea { width:100%;padding:9px 10px;border:1px solid #cfbda8;border-radius:9px;background:#fff;color:#301f2f;font:inherit; }
.resource-form-grid { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
.favorite-check { display:flex!important;grid-template-columns:auto 1fr!important;align-items:center;justify-content:start; }
.favorite-check input { width:auto; }
.resource-scope-note { padding:9px 11px;border-left:4px solid var(--orange);border-radius:8px;background:#fff2df;font-size:.75rem; }
.voice-recorder { display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:10px;border-radius:10px;background:#f1e4d5; }
.voice-recorder audio { width:100%;height:36px; }
.link-drop-zone input { margin-top:5px;max-width:330px;background:transparent;border:0; }
.resource-preview-dialog { width:min(780px,calc(100% - 24px)); }
#resourcePreviewBody { max-height:65vh;overflow:auto; }
#resourcePreviewBody img { display:block;max-width:100%;margin:auto; }
#resourcePreviewBody iframe { width:100%;height:58vh;border:1px solid #dbc6aa;border-radius:8px; }
#resourcePreviewBody audio { width:100%; }
.quick-guide-copy { white-space:pre-wrap;line-height:1.55; }
.resource-compact-brand { display:flex;align-items:center;gap:12px;min-width:0; }
.resources-page-name { padding-left:12px;border-left:1px solid #d9c5aa;color:var(--purple);font-family:Georgia,serif;font-size:1.12rem;font-weight:800; }
.resource-mini-dots { display:flex;align-items:center;gap:5px; }
.resource-mini-dots i { width:7px;height:7px;border-radius:50%;background:var(--orange); }
.resource-mini-dots i:nth-child(2){background:#2f8871}.resource-mini-dots i:nth-child(3){background:#e3a000}
.resource-heading-actions { display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap; }
.compact-print-button { padding:6px 10px;font-size:.68rem; }
.optional-resource-fields { padding:8px 10px;border:1px solid #dec9ad;border-radius:9px;background:#fffaf0; }
.optional-resource-fields summary { color:var(--purple);font-size:.72rem;font-weight:800;cursor:pointer; }
.optional-resource-fields p { margin:7px 0;color:#735f59;font-size:.68rem;line-height:1.35; }
.optional-resource-fields label { margin-top:7px; }
.resources-v22 .resources-topbar { min-height:58px; }
.resources-v22 .resources-topbar .button { padding:6px 10px;font-size:.72rem; }
.resource-projects-link { background:var(--purple)!important;color:#fff!important;border-color:var(--purple)!important; }
.resources-v22 .resources-main { padding-top:7px; }
.personal-resource-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.resource-card-viewport { max-height:126px; }
.personal-resource-card { min-height:56px;padding:5px 6px;grid-template-columns:30px minmax(0,1fr) auto; }
.personal-resource-icon { width:29px;height:29px; }
.personal-resource-copy small { -webkit-line-clamp:1; }
.resource-type-label { font-size:.46rem; }
.personal-resource-actions { flex-direction:row;grid-column:2/4;grid-row:2;justify-content:flex-end; }
.personal-resource-actions button { font-size:.52rem; }
.personal-resource-actions button:first-child { font-size:.72rem; }
@media(max-width:900px){.resources-v22 .resources-intro{grid-template-columns:1fr 210px}.resources-v22 .tool-grid,.personal-resource-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.resource-card-viewport{max-height:196px}.resources-v22 .bookmark-controls{grid-template-columns:1fr 1fr}.resources-v22 .bookmark-controls input{grid-column:1/-1}}
@media(max-width:650px){.resources-v22 .resources-topbar{min-height:58px}.resources-v22 .resources-intro{grid-template-columns:1fr;min-height:90px;padding:12px 15px}.resources-v22 .resource-index-card{display:none}.resources-v22 .tool-grid,.personal-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-card-viewport{max-height:275px}.resources-v22 .bookmark-controls,.resource-form-grid{grid-template-columns:1fr}.resources-v22 .bookmark-controls input{grid-column:auto}.resources-v22 .tool-card{grid-template-columns:31px minmax(0,1fr) auto}.resources-v22 .tool-card small{font-size:.56rem}}

/* v0.8 OneDrive storage status */
.storage-status {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 6px 9px;
  border: 1px solid rgba(47, 114, 105, .28);
  border-radius: 999px;
  background: rgba(235, 248, 244, .82);
  color: var(--green);
  font-size: .72rem;
  font-weight: 700;
}
.filed-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10000;

  padding: 11px 18px;
  border-radius: 8px;

  background: rgba(255, 250, 239, 0.96);
  color: #54244f;
  border: 1px solid rgba(84, 36, 79, 0.18);

  font-size: 16px;
  font-weight: 600;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);

  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;

  pointer-events: none;
}

.filed-toast.show {
  opacity: 1;
  transform: translateY(0);
}
