/* ==========================================================================
   REALISTIC PAPER NOTEPAD & VAULT - SOFT BROWN & WARM WHITE OLD PAPER THEME
   Zero Focus Rings Policy & Tactile Vintage Stationery
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400;600;700&family=Cinzel:wght@500;700;800&family=Inter:wght@300;400;500;600;700&family=Kalam:wght@300;400;700&family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=Patrick+Hand&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Special+Elite&display=swap');

:root {
  /* Soft Brown & Warm Linen Desk Backgrounds */
  --desk-base: #f0e9df;
  --desk-wood-warm: #e5dcce;
  --desk-wood-tan: #dacfc0;
  --desk-leather-soft: #8c6239;
  --desk-sunlight: radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.85) 0%, rgba(240, 233, 223, 0.4) 50%, transparent 80%);

  /* Warm White & Old Paper Types */
  --paper-lined-bg: #fffdf9;
  --paper-lined-line: rgba(80, 110, 140, 0.16);
  --paper-lined-margin: rgba(215, 75, 75, 0.45);
  
  --paper-grid-bg: #faf7f0;
  --paper-grid-line: rgba(90, 120, 150, 0.13);
  
  --paper-legal-bg: #fffce3;
  --paper-legal-line: rgba(175, 150, 50, 0.22);
  --paper-legal-margin: rgba(210, 60, 60, 0.48);

  --paper-parchment-bg: #f6eedb;
  --paper-parchment-border: #d8c7a6;
  --paper-parchment-stain: radial-gradient(circle at 75% 25%, rgba(160, 120, 60, 0.07) 0%, transparent 45%);

  --paper-slate-bg: #eae3d5;
  --paper-slate-line: rgba(70, 55, 40, 0.12);
  --paper-slate-text: #2c2118;

  /* Ink Colors */
  --ink-classic: #231c16;
  --ink-fountain: #1a273b;
  --ink-sepia: #3d2717;
  --ink-muted: #6e5d4f;

  /* Vintage Accents */
  --vintage-gold: #b38728;
  --vintage-brass: #c59b27;
  --vintage-tan: #cbb89d;
  --vintage-leather: #7b4c20;
  --vintage-emerald: #0d7857;
  --vintage-red: #c53030;
  --vintage-blue: #2563eb;

  /* Realistic Warm Paper Shadows */
  --shadow-paper: 
    0 1px 2px rgba(90, 70, 50, 0.08),
    0 4px 10px rgba(90, 70, 50, 0.12),
    0 15px 30px -4px rgba(70, 50, 30, 0.16),
    0 25px 50px -12px rgba(70, 50, 30, 0.22);
  --shadow-paper-hover: 
    0 2px 4px rgba(90, 70, 50, 0.1),
    0 8px 18px rgba(90, 70, 50, 0.15),
    0 20px 40px -6px rgba(70, 50, 30, 0.22),
    0 35px 65px -14px rgba(70, 50, 30, 0.28);
  --shadow-curled: 0 16px 28px -10px rgba(80, 55, 30, 0.35);

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
  --font-handwriting: 'Caveat', 'Kalam', cursive;
  --font-typewriter: 'Special Elite', monospace;
  --font-serif: 'Lora', Georgia, serif;
  --font-heading: 'Cinzel', serif;
}

/* ==========================================================================
   GLOBAL RESET & STRICT ZERO FOCUS RINGS (Mandatory Rule)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

*:focus, *:active, *:focus-visible,
input:focus, textarea:focus, select:focus, button:focus, a:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   LINEAL COLORED SVG ICONS STYLING & MICRO-INTERACTIONS
   ========================================================================== */
.lineal-icon {
  display: inline-block;
  vertical-align: -0.22em;
  width: 1.18em;
  height: 1.18em;
  flex-shrink: 0;
  overflow: visible;
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lineal-icon-sm {
  width: 1em;
  height: 1em;
}

.lineal-icon-md {
  width: 1.35em;
  height: 1.35em;
}

.lineal-icon-lg {
  width: 1.65em;
  height: 1.65em;
  vertical-align: -0.32em;
}

.lineal-icon-hero {
  width: 46px;
  height: 46px;
  margin-bottom: 8px;
  filter: drop-shadow(0 6px 14px rgba(90, 65, 40, 0.16));
}

.lineal-icon-empty {
  width: 68px;
  height: 68px;
  margin-bottom: 14px;
  filter: drop-shadow(0 8px 18px rgba(90, 65, 40, 0.18));
}

.vault-banner-icon-svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

/* Micro-interaction on button/link hover */
.desk-nav-btn:hover .lineal-icon,
.pill-btn:hover .lineal-icon,
.card-action-btn:hover .lineal-icon,
.fmt-btn:hover .lineal-icon,
.vault-btn-action:hover .lineal-icon,
.desk-brand:hover .lineal-icon {
  transform: scale(1.18) rotate(-4deg);
}

body {
  font-family: var(--font-sans);
  color: var(--ink-classic);
  background-color: var(--desk-base);
  background-image: 
    var(--desk-sunlight),
    linear-gradient(135deg, #f5efe6 0%, #ede4d6 40%, #e5dcce 75%, #dbd0bf 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Soft Linen / Paper Fiber Texture Overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(140, 110, 80, 0.02) 0px,
    rgba(140, 110, 80, 0.02) 1px,
    transparent 1px,
    transparent 8px
  );
  pointer-events: none;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Vintage Warm Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #e6ddce;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c5a880, #9e7d53);
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.4);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a8865a, #826139);
}

/* ==========================================================================
   DESK TOP NAVIGATION (Soft Brown & Warm Cream Header)
   ========================================================================== */
.desk-header {
  background: linear-gradient(180deg, #fcfaf6 0%, #f4ede1 100%);
  border-bottom: 2px solid #d8c7a6;
  box-shadow: 
    0 6px 20px rgba(90, 65, 40, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
}

.desk-header-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.desk-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease;
}

.desk-brand:hover {
  transform: translateY(-1px);
}

/* Warm Leather Stamped Notebook Icon */
.brand-notebook-icon {
  width: 42px;
  height: 48px;
  background: linear-gradient(135deg, #a06835 0%, #6e431a 100%);
  border-radius: 4px 10px 10px 4px;
  border: 1.5px solid #d4af37;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 
    2px 5px 12px rgba(80, 50, 20, 0.25),
    inset 1px 1px 2px rgba(255, 255, 255, 0.35);
  position: relative;
}

.brand-notebook-icon::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #fef08a;
  box-shadow: 1px 0 2px rgba(0, 0, 0, 0.3);
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #3b2818;
  filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.8));
}

.brand-tag {
  font-size: 0.72rem;
  color: #7a6652;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-tag::before {
  content: '✦';
  color: #b38728;
  font-size: 0.65rem;
}

/* Desk Navigation Buttons */
.desk-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.desk-nav-btn {
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  background: #fdfcf9;
  border: 1px solid #dcd1be;
  color: #3f3024;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(80, 60, 40, 0.08);
}

.desk-nav-btn:hover {
  background: #fef8ee;
  border-color: #b89868;
  color: #24170e;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(80, 60, 40, 0.15);
}

.desk-nav-btn.active {
  background: linear-gradient(135deg, #f5ebd9 0%, #ebdcc4 100%);
  border-color: #b38728;
  color: #2b1a0e;
  box-shadow: 
    0 3px 10px rgba(179, 135, 40, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.desk-nav-btn.vault-btn {
  background: linear-gradient(135deg, #edf7f2 0%, #ddf0e5 100%);
  border-color: #a3d9bc;
  color: #0b5e43;
}

.desk-nav-btn.vault-btn:hover {
  background: linear-gradient(135deg, #dcf3e6 0%, #caecda 100%);
  border-color: #0d7857;
  color: #054832;
  box-shadow: 0 5px 15px rgba(13, 120, 87, 0.18);
}

.desk-nav-btn.btn-primary {
  background: linear-gradient(135deg, #b8860b 0%, #8c5b1b 100%);
  color: #ffffff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 
    0 4px 14px rgba(140, 91, 27, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.desk-nav-btn.btn-primary:hover {
  background: linear-gradient(135deg, #c7951c 0%, #9e6924 100%);
  transform: translateY(-2px);
  box-shadow: 
    0 7px 20px rgba(140, 91, 27, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: #f7f1e6;
  border-radius: 30px;
  border: 1px solid #d8c8b0;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #b8860b 0%, #7b4c20 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   DESK CONTAINER & LAYOUT
   ========================================================================== */
.desk-container {
  max-width: 1440px;
  margin: 28px auto;
  padding: 0 28px;
  flex: 1;
  width: 100%;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   DESK TOOLBAR & SEARCH SYSTEM (Warm Cream Stationery Bar)
   ========================================================================== */
.notes-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  background: linear-gradient(180deg, #fdfcf9 0%, #f7f2e7 100%);
  padding: 16px 24px;
  border-radius: 14px;
  border: 1px solid #dacbb5;
  box-shadow: 
    0 8px 24px rgba(90, 65, 40, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 280px;
  max-width: 500px;
}

.search-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #d4c5af;
  border-radius: 10px;
  padding: 11px 16px 11px 44px;
  color: var(--ink-classic);
  font-size: 0.92rem;
  transition: all 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.04);
}

.search-input:focus {
  border-color: #b38728;
  background: #ffffff;
  box-shadow: 
    inset 0 2px 4px rgba(0,0,0,0.04),
    0 0 10px rgba(179, 135, 40, 0.2);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c7764;
  font-size: 1rem;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.pill-btn {
  padding: 7px 16px;
  border-radius: 24px;
  font-size: 0.82rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #dcd1be;
  color: #5a4635;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.pill-btn:hover, .pill-btn.active {
  background: linear-gradient(135deg, #f5ebd9 0%, #ebdcc4 100%);
  border-color: #b38728;
  color: #2b1a0e;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(90, 65, 40, 0.12);
}

/* ==========================================================================
   REALISTIC PAPER NOTEPAD CARDS (Warm White & Old Paper Cards)
   ========================================================================== */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

/* Tactile Warm White / Old Paper Card Item */
.paper-card {
  position: relative;
  min-height: 290px;
  padding: 30px 24px 22px 30px;
  border-radius: 3px 8px 8px 3px;
  box-shadow: var(--shadow-paper);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(130, 95, 60, 0.18);
}

.paper-card:hover {
  transform: translateY(-8px) rotate(-0.5deg) scale(1.015);
  box-shadow: var(--shadow-paper-hover);
}

/* Ribbon Bookmark for Pinned Notes */
.card-ribbon {
  position: absolute;
  top: 0;
  right: 24px;
  width: 20px;
  height: 38px;
  background: linear-gradient(180deg, #c53030 0%, #9b1c1c 100%);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.4);
  z-index: 5;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}

.card-ribbon.ribbon-gold {
  background: linear-gradient(180deg, #d97706 0%, #b45309 100%);
}

/* Pushpin for Pinned Notes */
.paper-pin {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 35% 30%, #ff5252 0%, #b30000 65%, #660000 100%);
  border-radius: 50%;
  box-shadow: 
    0 4px 10px rgba(80, 40, 20, 0.35),
    inset 0 2px 2px rgba(255, 255, 255, 0.7);
  z-index: 8;
}

.paper-pin::after {
  content: '';
  position: absolute;
  top: 15px;
  left: 7px;
  width: 2px;
  height: 8px;
  background: linear-gradient(180deg, #888, #333);
  transform: rotate(-15deg);
}

/* 3-Ring Binder Punched Holes on the Left of Cards */
.paper-card::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 40px;
  bottom: 40px;
  width: 8px;
  background-image: radial-gradient(circle, rgba(90, 65, 40, 0.2) 40%, transparent 45%);
  background-size: 8px 60px;
  background-repeat: repeat-y;
  pointer-events: none;
  opacity: 0.7;
}

/* Paper Styles for Cards & Editor */
.paper-card.style-lined, .paper-sheet.style-lined {
  background-color: var(--paper-lined-bg);
  background-image: 
    linear-gradient(90deg, transparent 52px, var(--paper-lined-margin) 53px, transparent 55px),
    linear-gradient(var(--paper-lined-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 30px;
  color: var(--ink-classic);
}

.paper-card.style-grid, .paper-sheet.style-grid {
  background-color: var(--paper-grid-bg);
  background-image: 
    linear-gradient(var(--paper-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper-grid-line) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink-classic);
}

.paper-card.style-legal, .paper-sheet.style-legal {
  background-color: var(--paper-legal-bg);
  background-image: 
    linear-gradient(90deg, transparent 50px, var(--paper-legal-margin) 51px, transparent 53px, var(--paper-legal-margin) 54px, transparent 56px),
    linear-gradient(var(--paper-legal-line) 1px, transparent 1px);
  background-size: 100% 100%, 100% 32px;
  color: var(--ink-classic);
}

.paper-card.style-parchment, .paper-sheet.style-parchment {
  background-color: var(--paper-parchment-bg);
  background-image: 
    var(--paper-parchment-stain),
    radial-gradient(circle at 30% 70%, rgba(160, 120, 60, 0.08) 0%, transparent 50%);
  border: 1px solid var(--paper-parchment-border);
  color: var(--ink-sepia);
}

.paper-card.style-slate, .paper-sheet.style-slate {
  background-color: #ede5d8;
  background-image: 
    linear-gradient(rgba(100, 75, 50, 0.12) 1px, transparent 1px);
  background-size: 100% 30px;
  color: #2c2016;
  border: 1px solid #d4c5af;
}

/* Dog-ear corner fold effect with soft warm shadow */
.paper-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 24px 24px;
  border-color: transparent transparent rgba(100, 70, 40, 0.15) transparent;
  box-shadow: -2px -2px 5px rgba(90, 60, 30, 0.1);
  transition: all 0.2s ease;
}

.paper-card:hover::after {
  border-width: 0 0 34px 34px;
  border-color: transparent transparent rgba(100, 70, 40, 0.22) transparent;
}

/* Card Content Typography */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-classic);
  letter-spacing: -0.01em;
}

.card-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(120, 85, 50, 0.08);
  border: 1px solid rgba(120, 85, 50, 0.15);
  color: #523b28;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.card-preview {
  font-size: 0.96rem;
  line-height: 1.68;
  opacity: 0.9;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  white-space: pre-line;
  flex: 1;
  color: var(--ink-classic);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px dashed rgba(120, 85, 50, 0.2);
  font-size: 0.78rem;
  color: #7a6652;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-action-btn {
  background: rgba(120, 85, 50, 0.06);
  border: none;
  color: #523b28;
  cursor: pointer;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.85rem;
  transition: all 0.18s ease;
}

.card-action-btn:hover {
  background: rgba(120, 85, 50, 0.16);
  color: #24170e;
  transform: scale(1.18);
}

/* ==========================================================================
   REALISTIC PAPER EDITOR (Full Notebook Sheet View)
   ========================================================================== */
.editor-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1060px;
  margin: 0 auto;
}

/* Floating Stationery Formatting Bar */
.stationery-formatting-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: #f7f1e6;
  border-radius: 8px;
  border: 1px solid #d8c8b0;
}

.fmt-btn {
  background: transparent;
  border: none;
  color: #4a3625;
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fmt-btn:hover {
  background: #ebdcc4;
  color: #24170e;
  transform: translateY(-1px);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(180deg, #fdfcf9 0%, #f6f0e4 100%);
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid #dacbb5;
  box-shadow: 
    0 8px 24px rgba(90, 65, 40, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.toolbar-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.select-stationery {
  background: #ffffff;
  border: 1px solid #d4c5af;
  border-radius: 8px;
  color: var(--ink-classic);
  padding: 8px 14px;
  font-size: 0.86rem;
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.04);
}

.select-stationery option {
  background: #fcfaf6;
  color: #24170e;
}

/* Realistic Notebook Sheet Wrapper */
.notebook-sheet-wrapper {
  position: relative;
  padding-top: 30px;
}

/* Realistic Top Metallic Spiral Rings */
.spiral-binding-top {
  position: absolute;
  top: 0;
  left: 45px;
  right: 45px;
  height: 42px;
  display: flex;
  justify-content: space-around;
  z-index: 15;
  pointer-events: none;
}

.spiral-ring {
  width: 16px;
  height: 40px;
  background: linear-gradient(90deg, #666 0%, #ccc 35%, #fff 55%, #888 75%, #444 100%);
  border-radius: 10px;
  box-shadow: 
    0 6px 10px rgba(90, 65, 40, 0.25),
    inset 0 2px 3px rgba(255, 255, 255, 0.9);
  position: relative;
}

.spiral-ring::before, .spiral-ring::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  background: #4a3420;
  border-radius: 50%;
  left: 2px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.6);
}
.spiral-ring::before { top: 2px; }
.spiral-ring::after { bottom: 2px; }

/* Paper Sheet Canvas */
.paper-sheet {
  min-height: 720px;
  padding: 56px 56px 56px 84px;
  border-radius: 4px 10px 10px 4px;
  box-shadow: 
    0 25px 60px rgba(80, 55, 30, 0.18),
    0 8px 20px rgba(80, 55, 30, 0.1),
    inset 0 0 2px rgba(255, 255, 255, 0.8);
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(130, 95, 60, 0.16);
}

/* Punched Holes on Sheet */
.paper-sheet::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 80px;
  bottom: 80px;
  width: 14px;
  background-image: radial-gradient(circle, rgba(90, 65, 40, 0.22) 45%, transparent 50%);
  background-size: 14px 120px;
  background-repeat: repeat-y;
  pointer-events: none;
}

.note-title-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(120, 85, 50, 0.2);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink-classic);
  padding: 8px 0 14px 0;
  margin-bottom: 24px;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.note-textarea {
  width: 100%;
  flex: 1;
  min-height: 520px;
  background: transparent;
  border: none;
  color: var(--ink-classic);
  font-size: 1.18rem;
  line-height: 30px;
  resize: vertical;
  font-family: inherit;
  letter-spacing: 0.01em;
}

/* Font Family Classes */
.font-sans { font-family: var(--font-sans) !important; }
.font-handwriting { font-family: var(--font-handwriting) !important; font-size: 1.45rem !important; line-height: 30px !important; }
.font-typewriter { font-family: var(--font-typewriter) !important; font-size: 1.15rem !important; }
.font-serif { font-family: var(--font-serif) !important; font-size: 1.2rem !important; }

/* Status & Auto-save ticker */
.autosave-ticker {
  font-size: 0.82rem;
  color: #6e5d4f;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5eedf;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid #dacab3;
}

.pulse-dot {
  width: 9px;
  height: 9px;
  background: #0d7857;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px rgba(13, 120, 87, 0.4);
}

/* Empty State / Parchment Blank */
.empty-parchment {
  text-align: center;
  padding: 70px 24px;
  background: linear-gradient(180deg, #fdfcf9 0%, #f6eee0 100%);
  border-radius: 18px;
  border: 1.5px dashed #cbb698;
  max-width: 580px;
  margin: 50px auto;
  box-shadow: 0 15px 35px rgba(90, 65, 40, 0.1);
}

/* Responsive adjustments */
@media (max-width: 820px) {
  .desk-header-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .desk-nav {
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .paper-sheet {
    padding: 44px 24px 24px 44px;
  }
  .spiral-binding-top {
    left: 12px;
    right: 12px;
  }
}
