/* ============================================================
   estilo.css — Hoja de estilos COMPARTIDA de ληστεία.org
   Contiene las reglas CSS que eran idénticas en index.html,
   galeria.php, cita.php e imagen.php (variables de color, tipografía
   base, cabecera, tarjetas, botones, overlays, etc.), extraídas a un
   único fichero para que el navegador la descargue y la cacheé UNA
   sola vez, en vez de una vez por cada una de las 4 páginas.

   Cada página conserva, en su propio <style> local, únicamente las
   reglas que le son específicas (por ejemplo, la rejilla de la
   galería, o el layout de una sola cita/imagen).
   ============================================================ */

:root {
    /* MODO CLARO — "Wikipedia Egea": Enciclopedia clásica a la luz del mar */
    --bg-page: #F4F6F8;
    --bg-panel: #EAEFF2;
    --bg-card: #FFFFFF;
    --bg-header: #FFFFFF;
    --text-page: #1A232B;
    --text-page-muted: #536471;
    --text-card: #1C2833;
    --text-card-muted: #5A6D7C;
    --border-subtle: #D0DCE5;
    --border-strong: #9BAEC0;
    --brand-marine: #184E77;       /* Azul Egeo Marítimo */
    --brand-marine-hover: #1E6091;
    --brand-gold: #AD7C34;         /* Oro/Bronce Griego */
    --brand-gold-faded: rgba(173, 124, 52, 0.12);
    --brand-red: #A23E2A;
    --overlay-bg: rgba(26, 35, 43, 0.65);
    --form-bg: #F9FBFD;
    
    --toggle-track: #184E77;
    --toggle-thumb: #FFFFFF;
    --toggle-text: #184E77;
    --shadow-sm: 0 1px 3px rgba(24, 78, 119, 0.08);
    --shadow-md: 0 4px 12px rgba(24, 78, 119, 0.12);
  }

[data-theme="dark"] {
    /* MODO OSCURO — "Mar Color de Vino": El mar homérico de noche */
    --bg-page: #0A1622;
    --bg-panel: #112233;
    --bg-card: #162B3F;
    --bg-header: #0F1F30;
    --text-page: #E2E8F0;
    --text-page-muted: #8EA3B8;
    --text-card: #F1F5F9;
    --text-card-muted: #94A3B8;
    --border-subtle: rgba(226, 232, 240, 0.14);
    --border-strong: rgba(226, 232, 240, 0.28);
    --brand-marine: #5296A5;       /* Verde Aguamarina Clásico */
    --brand-marine-hover: #64B5C6;
    --brand-gold: #D69A51;         /* Bronce Iluminado */
    --brand-gold-faded: rgba(214, 154, 81, 0.15);
    --brand-red: #E06C53;
    --overlay-bg: rgba(4, 12, 18, 0.85);
    --form-bg: #112233;
    
    --toggle-track: #D69A51;
    --toggle-thumb: #0A1622;
    --toggle-text: #D69A51;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.4);
  }

* { box-sizing: border-box; }

body {
    background: var(--bg-page);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
  }

#archive-root {
    background: var(--bg-page);
    color: var(--text-page);
    font-family: 'Source Serif 4', serif;
    min-height: 100vh;
    margin: 0;
    padding: 0 0 12px 0;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
  }

/* Textura de fondo sutil */
  body::before, #archive-root::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image:
  }

[data-theme="dark"] body::before, [data-theme="dark"] #archive-root::before {
    background-image:
  }

::selection { background: var(--brand-gold); color: #FFF; }

/* =========================================================
     ESTRUCTURA DE CABECERA Y GRECA
     ========================================================= */
  .app-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

.app-header {
    background: var(--bg-header);
    border-bottom: 2px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    padding: 12px 0; 
  }

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
  }

.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 0px;
    gap: 32px;
  }

.header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
  }

[data-theme="dark"] .eyebrow { color: var(--brand-gold); }

.eyebrow-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

.eyebrow-text-wrapper span {
    display: block;
  }

.greca-griega {
    display: block;
    height: 12px;
    width: 100%;
    margin: -4px 0 0 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 115.48674 23.731373'%3E%3Cg transform='translate(-12.672332,-224.20021)'%3E%3Cpath d='m 128.15904,247.92363 v -1.78723 -2.01246 l -2.01249,-0.20538 c -3.99015,-0.41171 -6.8654,-3.03487 -7.42409,-6.28762 -0.60769,-2.74047 0.34216,-5.64553 2.82348,-7.48411 1.24936,-0.92611 4.12277,-1.0692 5.92223,-0.45531 l 0.6909,0.0678 v -2.58819 c 0,-1.70741 -0.15655,-2.65862 -0.46558,-2.79841 -0.25768,-0.11624 -1.65003,-0.16081 -3.0938,-0.0969 -5.12759,0.23444 -8.322,2.6528 -13.39136,10.13236 -3.68772,5.44094 -5.13743,7.08867 -7.39401,8.41527 -1.52407,0.89608 -2.09872,1.00904 -5.091231,1.00623 -3.867993,-0.003 -5.840138,-0.77112 -7.434057,-2.89848 -0.707763,-0.94452 -1.068047,-1.70343 -1.256516,-2.64825 -1.269158,-3.94907 0.91827,-8.51805 5.291422,-9.01104 3.346935,-0.37684 5.919462,1.58089 5.817112,3.7997 7e-5,0.0194 0.007,0.0291 0.007,0.0484 -0.002,0.19375 -0.0271,0.37103 -0.0504,0.55025 -0.2416,1.82986 -1.522057,2.85527 -2.002456,1.34161 -0.132621,-0.41753 -0.626679,-1.01563 -1.101353,-1.32659 -1.807798,-1.18458 -4.063833,1.22303 -3.273979,3.24392 0.826724,1.44498 3.404798,2.32063 5.536778,1.61693 3.04263,-1.0041 5.28254,-5.68254 4.33024,-9.00097 -0.0562,-0.19471 -0.12332,-0.38362 -0.19549,-0.57059 -0.0697,-0.20537 -0.14114,-0.40784 -0.21525,-0.59093 -1.40006,-2.83018 -4.686358,-4.47064 -8.850795,-4.14001 -4.913487,0.3904 -8.103999,2.93286 -13.276189,10.58796 -4.802692,7.10795 -6.881564,8.79143 -11.258765,9.10104 -4.167624,0.29546 -7.234825,-1.08374 -8.725651,-3.65439 -1.10084,-1.54611 -1.542421,-3.48476 -1.04627,-5.64195 1.004343,-4.36641 4.923368,-6.56022 8.810745,-4.93593 1.195747,0.49987 1.957682,1.29084 2.267785,2.23769 0.02422,0.0678 0.04263,0.1395 0.06006,0.21022 0.06297,0.25187 0.09707,0.51053 0.09494,0.78081 0.0021,0.0581 0.02034,0.0969 0.02034,0.15015 0.02422,2.27519 -1.491494,3.69992 -2.052512,1.93235 -0.07169,-0.22765 -0.207408,-0.40881 -0.335282,-0.59578 -0.05909,-0.10365 -0.127486,-0.19568 -0.195492,-0.28578 -0.618638,-0.66649 -1.57127,-0.94549 -2.392937,-0.57058 -1.206897,0.55024 -1.708173,1.59978 -1.581936,2.62819 0.0069,0.0291 0.01356,0.0678 0.02034,0.0969 0.01744,0.11237 0.062,0.2199 0.09494,0.33034 0.631717,1.47675 2.711344,2.53578 4.900981,2.12764 1.853106,-0.34584 4.037638,-2.51824 4.780847,-4.75584 0.598295,-1.80128 0.602751,-3.53794 0.06975,-5.05615 -0.0026,-0.007 -0.0069,-0.0194 -0.01066,-0.0291 -5.52e-4,-0.002 5.14e-4,-0.003 0,-0.003 -1.193092,-3.03874 -4.570611,-5.01701 -9.121159,-4.65577 -4.822987,0.38265 -8.153754,2.97995 -12.790626,9.97223 -3.388591,5.10992 -5.268493,7.24522 -7.599266,8.6155 -1.514541,0.89028 -2.099312,1.0012 -5.116245,1.0012 -3.137135,0 -3.549838,-0.0872 -5.246424,-1.13634 -1.383742,-0.85539 -2.300723,-1.90444 -2.868542,-3.13388 -0.172533,-0.34487 -0.317166,-0.71105 -0.440583,-1.09632 -0.06394,-0.19956 -0.144924,-0.38556 -0.195493,-0.59578 -1.337541,-5.57549 3.708373,-10.28096 8.76071,-8.16998 1.11199,0.465 1.858541,1.17867 2.207675,2.03746 0.01356,0.0291 0.01744,0.0581 0.02422,0.0872 0.140758,0.35359 0.225232,0.7314 0.225232,1.14137 0,2.38243 -1.492191,3.86005 -2.067527,2.04743 -0.132621,-0.41752 -0.651382,-1.0289 -1.151388,-1.35662 -0.831568,-0.54443 -0.986635,-0.54443 -1.83223,0.01 -1.100132,0.72074 -1.564809,1.60278 -1.546897,2.43803 0.325013,1.87858 2.927257,3.26185 5.476685,2.498 2.909974,-0.87187 4.6568,-3.56187 4.680728,-7.19882 0.01356,-1.76689 -0.130199,-2.5072 -0.700885,-3.49425 -0.131265,-0.18891 -0.253907,-0.37491 -0.440584,-0.60547 -1.83065,-2.26191 -3.565744,-2.96861 -7.293802,-2.96861 -2.779591,0 -3.465218,0.14047 -5.351542,1.09633 -2.736289,1.38656 -5.027867,3.81742 -8.520384,9.02605 -3.241643,4.83451 -5.587422,7.44885 -7.679381,8.56543 -0.896764,0.47855 -1.877509,0.64711 -3.294032,0.72558 -0.10288,0.01 -0.236857,0.0581 -0.330438,0.0581 -0.577951,0 -0.685869,0.31678 -0.685869,2.06255 v 2.06254 z M 12.863206,238.90765 c 0.01744,-0.002 0.03391,-0.003 0.05038,-0.007 l 1.551895,-0.77112 c 3.034506,-1.50659 4.621596,-6.03768 3.314017,-9.4615 -0.136011,-0.35553 -0.296338,-0.66359 -0.46054,-0.96584 -0.910907,-1.41223 -2.504275,-2.4917 -4.44542,-3.05871 -0.108693,0.36425 -0.200239,1.16608 -0.200239,2.31782 3.9e-5,2.29524 0.13359,2.81991 0.941133,3.77964 0.08234,0.0978 0.134364,0.22572 0.210217,0.33518 0.353687,0.44369 0.610501,0.94259 0.675891,1.5218 0.0068,0.0581 0.05037,0.13756 0.05037,0.18503 0,0.0387 -0.01744,0.0872 -0.02034,0.12012 3.39e-4,0.0194 0.0034,0.0387 0.0034,0.0581 0,1.58534 -0.660391,2.7428 -1.271551,2.82349 -0.07847,0.0678 -0.16333,0.186 -0.235114,0.21022 -0.230657,0.0775 -0.353397,0.74593 -0.285391,1.53187 z m 115.090584,-0.14047 c 0.0446,-0.007 0.0862,-0.0194 0.1302,-0.0291 0.10423,-0.34487 0.0688,-0.94356 0,-1.89728 -0.0542,-0.75465 -0.14658,-1.20967 -0.25527,-1.63204 -0.007,-0.0387 -0.0242,-0.0775 -0.0242,-0.12497 0,-0.0988 -0.0358,-0.17825 -0.0504,-0.27028 -0.15519,-0.42624 -0.372,-0.71105 -0.70583,-0.98124 -1.01643,-0.82343 -2.14113,-0.61708 -3.09882,0.57059 -0.46238,0.5735 -0.6447,1.1933 -0.60575,1.78723 0.21835,1.19834 1.40173,2.21755 3.26898,2.53307 0.45395,0.0775 0.90335,0.0872 1.34168,0.0484 z' fill='%23AD7C34'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: 58px 12px;
	background-position: -3px 0;
    opacity: 0.65;
  }

[data-theme="dark"] .greca-griega {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 115.48674 23.731373'%3E%3Cg transform='translate(-12.672332,-224.20021)'%3E%3Cpath d='m 128.15904,247.92363 v -1.78723 -2.01246 l -2.01249,-0.20538 c -3.99015,-0.41171 -6.8654,-3.03487 -7.42409,-6.28762 -0.60769,-2.74047 0.34216,-5.64553 2.82348,-7.48411 1.24936,-0.92611 4.12277,-1.0692 5.92223,-0.45531 l 0.6909,0.0678 v -2.58819 c 0,-1.70741 -0.15655,-2.65862 -0.46558,-2.79841 -0.25768,-0.11624 -1.65003,-0.16081 -3.0938,-0.0969 -5.12759,0.23444 -8.322,2.6528 -13.39136,10.13236 -3.68772,5.44094 -5.13743,7.08867 -7.39401,8.41527 -1.52407,0.89608 -2.09872,1.00904 -5.091231,1.00623 -3.867993,-0.003 -5.840138,-0.77112 -7.434057,-2.89848 -0.707763,-0.94452 -1.068047,-1.70343 -1.256516,-2.64825 -1.269158,-3.94907 0.91827,-8.51805 5.291422,-9.01104 3.346935,-0.37684 5.919462,1.58089 5.817112,3.7997 7e-5,0.0194 0.007,0.0291 0.007,0.0484 -0.002,0.19375 -0.0271,0.37103 -0.0504,0.55025 -0.2416,1.82986 -1.522057,2.85527 -2.002456,1.34161 -0.132621,-0.41753 -0.626679,-1.01563 -1.101353,-1.32659 -1.807798,-1.18458 -4.063833,1.22303 -3.273979,3.24392 0.826724,1.44498 3.404798,2.32063 5.536778,1.61693 3.04263,-1.0041 5.28254,-5.68254 4.33024,-9.00097 -0.0562,-0.19471 -0.12332,-0.38362 -0.19549,-0.57059 -0.0697,-0.20537 -0.14114,-0.40784 -0.21525,-0.59093 -1.40006,-2.83018 -4.686358,-4.47064 -8.850795,-4.14001 -4.913487,0.3904 -8.103999,2.93286 -13.276189,10.58796 -4.802692,7.10795 -6.881564,8.79143 -11.258765,9.10104 -4.167624,0.29546 -7.234825,-1.08374 -8.725651,-3.65439 -1.10084,-1.54611 -1.542421,-3.48476 -1.04627,-5.64195 1.004343,-4.36641 4.923368,-6.56022 8.810745,-4.93593 1.195747,0.49987 1.957682,1.29084 2.267785,2.23769 0.02422,0.0678 0.04263,0.1395 0.06006,0.21022 0.06297,0.25187 0.09707,0.51053 0.09494,0.78081 0.0021,0.0581 0.02034,0.0969 0.02034,0.15015 0.02422,2.27519 -1.491494,3.69992 -2.052512,1.93235 -0.07169,-0.22765 -0.207408,-0.40881 -0.335282,-0.59578 -0.05909,-0.10365 -0.127486,-0.19568 -0.195492,-0.28578 -0.618638,-0.66649 -1.57127,-0.94549 -2.392937,-0.57058 -1.206897,0.55024 -1.708173,1.59978 -1.581936,2.62819 0.0069,0.0291 0.01356,0.0678 0.02034,0.0969 0.01744,0.11237 0.062,0.2199 0.09494,0.33034 0.631717,1.47675 2.711344,2.53578 4.900981,2.12764 1.853106,-0.34584 4.037638,-2.51824 4.780847,-4.75584 0.598295,-1.80128 0.602751,-3.53794 0.06975,-5.05615 -0.0026,-0.007 -0.0069,-0.0194 -0.01066,-0.0291 -5.52e-4,-0.002 5.14e-4,-0.003 0,-0.003 -1.193092,-3.03874 -4.570611,-5.01701 -9.121159,-4.65577 -4.822987,0.38265 -8.153754,2.97995 -12.790626,9.97223 -3.388591,5.10992 -5.268493,7.24522 -7.599266,8.6155 -1.514541,0.89028 -2.099312,1.0012 -5.116245,1.0012 -3.137135,0 -3.549838,-0.0872 -5.246424,-1.13634 -1.383742,-0.85539 -2.300723,-1.90444 -2.868542,-3.13388 -0.172533,-0.34487 -0.317166,-0.71105 -0.440583,-1.09632 -0.06394,-0.19956 -0.144924,-0.38556 -0.195493,-0.59578 -1.337541,-5.57549 3.708373,-10.28096 8.76071,-8.16998 1.11199,0.465 1.858541,1.17867 2.207675,2.03746 0.01356,0.0291 0.01744,0.0581 0.02422,0.0872 0.140758,0.35359 0.225232,0.7314 0.225232,1.14137 0,2.38243 -1.492191,3.86005 -2.067527,2.04743 -0.132621,-0.41752 -0.651382,-1.0289 -1.151388,-1.35662 -0.831568,-0.54443 -0.986635,-0.54443 -1.83223,0.01 -1.100132,0.72074 -1.564809,1.60278 -1.546897,2.43803 0.325013,1.87858 2.927257,3.26185 5.476685,2.498 2.909974,-0.87187 4.6568,-3.56187 4.680728,-7.19882 0.01356,-1.76689 -0.130199,-2.5072 -0.700885,-3.49425 -0.131265,-0.18891 -0.253907,-0.37491 -0.440584,-0.60547 -1.83065,-2.26191 -3.565744,-2.96861 -7.293802,-2.96861 -2.779591,0 -3.465218,0.14047 -5.351542,1.09633 -2.736289,1.38656 -5.027867,3.81742 -8.520384,9.02605 -3.241643,4.83451 -5.587422,7.44885 -7.679381,8.56543 -0.896764,0.47855 -1.877509,0.64711 -3.294032,0.72558 -0.10288,0.01 -0.236857,0.0581 -0.330438,0.0581 -0.577951,0 -0.685869,0.31678 -0.685869,2.06255 v 2.06254 z M 12.863206,238.90765 c 0.01744,-0.002 0.03391,-0.003 0.05038,-0.007 l 1.551895,-0.77112 c 3.034506,-1.50659 4.621596,-6.03768 3.314017,-9.4615 -0.136011,-0.35553 -0.296338,-0.66359 -0.46054,-0.96584 -0.910907,-1.41223 -2.504275,-2.4917 -4.44542,-3.05871 -0.108693,0.36425 -0.200239,1.16608 -0.200239,2.31782 3.9e-5,2.29524 0.13359,2.81991 0.941133,3.77964 0.08234,0.0978 0.134364,0.22572 0.210217,0.33518 0.353687,0.44369 0.610501,0.94259 0.675891,1.5218 0.0068,0.0581 0.05037,0.13756 0.05037,0.18503 0,0.0387 -0.01744,0.0872 -0.02034,0.12012 3.39e-4,0.0194 0.0034,0.0387 0.0034,0.0581 0,1.58534 -0.660391,2.7428 -1.271551,2.82349 -0.07847,0.0678 -0.16333,0.186 -0.235114,0.21022 -0.230657,0.0775 -0.353397,0.74593 -0.285391,1.53187 z m 115.090584,-0.14047 c 0.0446,-0.007 0.0862,-0.0194 0.1302,-0.0291 0.10423,-0.34487 0.0688,-0.94356 0,-1.89728 -0.0542,-0.75465 -0.14658,-1.20967 -0.25527,-1.63204 -0.007,-0.0387 -0.0242,-0.0775 -0.0242,-0.12497 0,-0.0988 -0.0358,-0.17825 -0.0504,-0.27028 -0.15519,-0.42624 -0.372,-0.71105 -0.70583,-0.98124 -1.01643,-0.82343 -2.14113,-0.61708 -3.09882,0.57059 -0.46238,0.5735 -0.6447,1.1933 -0.60575,1.78723 0.21835,1.19834 1.40173,2.21755 3.26898,2.53307 0.45395,0.0775 0.90335,0.0872 1.34168,0.0484 z' fill='%23D69A51'/%3E%3C/g%3E%3C/svg%3E");
  }

img.alineadoTextoImagenCentro { vertical-align: middle; }

.header-home-link { display: inline-block; text-decoration: none; color: inherit; }

.header-home-link:hover, .header-home-link:visited, .header-home-link:active { text-decoration: none; color: inherit; }

.theme-toggle-container {
    display: flex;
    align-items: center;
    background: var(--bg-panel);
    padding: 4px;
    border-radius: 30px;
    border: 1px solid var(--border-subtle);
  }

.theme-switch-track {
    position: relative;
    width: 46px;
    height: 24px;
    background: var(--toggle-track);
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s ease;
    user-select: none;
  }

.theme-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--toggle-thumb);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
  }

.theme-switch-thumb svg { width: 13px; height: 13px; display: block; }

.theme-switch-thumb .icon-moon { stroke: var(--brand-gold); fill: none; }

.theme-switch-thumb .icon-sun { stroke: var(--brand-marine); fill: none; display: none; }

[data-theme="light"] .theme-switch-thumb .icon-moon { display: none; }

[data-theme="light"] .theme-switch-thumb .icon-sun { display: block; }

[data-theme="dark"] .theme-switch-thumb { transform: translateX(0); }

[data-theme="light"] .theme-switch-thumb { transform: translateX(22px); }

.footer-sep { color: var(--border-subtle); }

.site-footer a {
    color: var(--text-page); text-decoration: none; transition: color .15s; font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
  }

.site-footer a:hover { color: var(--brand-gold); text-decoration: underline; }

.footer-social { display: inline-flex; align-items: center; gap: 8px; color: var(--text-page-muted); }

.footer-social:hover { color: var(--brand-gold); text-decoration: none; }

.footer-social svg { width: 17px; height: 17px; display: block; }

[data-theme="dark"] .card { border-left-color: var(--brand-gold); }

[data-theme="dark"] .cita-tag { color: var(--brand-gold); background: rgba(214, 154, 81, 0.12); }

[data-theme="dark"] .tag-pill { color: var(--text-page); }

.edit-icon-btn:hover { background: var(--brand-marine); color: #FFF; border-color: var(--brand-marine); }

[data-theme="dark"] .edit-icon-btn:hover { background: var(--brand-gold); color: #000; border-color: var(--brand-gold); }

.del-icon-btn { border-color: rgba(162,62,42,0.4); color: var(--brand-red); }

.del-icon-btn:hover { background: var(--brand-red); color: #FFF; border-color: var(--brand-red); }

.modal-overlay.open { display: flex; }

.modal { background: var(--bg-card); color: var(--text-card); max-width: 680px; width: 100%; border-radius: 6px; padding: 28px 32px; box-shadow: 0 20px 50px rgba(0,0,0,0.3); border: 1px solid var(--border-strong); border-top: 4px solid var(--brand-marine); }

[data-theme="dark"] .modal { border-top-color: var(--brand-gold); }

.modal h3 { font-family: 'Cinzel', serif; font-size: 22px; font-weight: 700; margin: 0 0 6px 0; color: var(--text-card); }

.modal .modal-sub { font-size: 13px; color: var(--text-card-muted); margin: 0 0 20px 0; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.form-field { display: flex; flex-direction: column; gap: 5px; }

.form-field.full { grid-column: 1/-1; }

.form-field label { font-family: 'IBM Plex Mono', monospace; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-card-muted); }

.form-field input, .form-field textarea, .form-field select { font-family: 'Source Serif 4', serif; font-size: 14px; border: 1px solid var(--border-strong); border-radius: 4px; padding: 9px 12px; background: var(--form-bg); color: var(--text-card); outline: none; }

.form-field input:focus, .form-field textarea:focus { border-color: var(--brand-marine); }

[data-theme="dark"] .form-field input:focus, [data-theme="dark"] .form-field textarea:focus { border-color: var(--brand-gold); }

.form-field textarea { resize: vertical; min-height: 64px; }

.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

.btn-light { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; padding: 10px 18px; border-radius: 4px; border: 1px solid var(--border-strong); background: var(--bg-panel); color: var(--text-card-muted); cursor: pointer; }

.btn-light:hover { color: var(--text-card); border-color: var(--text-card); }

.btn-dark { font-family: 'IBM Plex Mono', monospace; font-size: 12px; font-weight: 600; padding: 10px 18px; border-radius: 4px; border: none; background: var(--brand-marine); color: #FFF; cursor: pointer; }

[data-theme="dark"] .btn-dark { background: var(--brand-gold); color: #000; }

.btn-dark:hover { opacity: 0.9; }

.req-note { font-size: 11.5px; color: var(--brand-red); margin-top: 6px; min-height: 16px; font-weight: 600; }

.legal-content-modal h3 {
    font-family: 'Cinzel', serif; font-size: 16px; font-weight: 700; color: var(--brand-marine);
    margin-top: 20px; margin-bottom: 8px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 4px; letter-spacing: 0.02em;
  }

.legal-content-modal h3:first-child { margin-top: 0; }

[data-theme="dark"] .legal-content-modal h3 { color: var(--brand-gold); }

.legal-content-modal p, .legal-content-modal ul { margin-bottom: 12px; margin-top: 0; }

.legal-content-modal ul { padding-left: 20px; }

.legal-content-modal li { margin-bottom: 6px; }

.legal-content-modal a { color: var(--brand-marine); text-decoration: none; font-weight: 600; }

[data-theme="dark"] .legal-content-modal a { color: var(--brand-gold); }

.legal-content-modal a:hover { text-decoration: underline; }

.legal-content-modal::-webkit-scrollbar { width: 6px; }

.legal-content-modal::-webkit-scrollbar-track { background: var(--bg-panel); border-radius: 3px; }

.legal-content-modal::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.legal-content-modal::-webkit-scrollbar-thumb:hover { background: var(--brand-marine); }

[data-theme="dark"] .legal-content-modal::-webkit-scrollbar-thumb:hover { background: var(--brand-gold); }
