/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--spacing:.25rem;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab, currentcolor 50%, transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.collapse{visibility:collapse}.invisible{visibility:hidden}.visible{visibility:visible}.absolute{position:absolute}.start{inset-inline-start:var(--spacing)}.end{inset-inline-end:var(--spacing)}.container{width:100%}@media (width>=40rem){.container{max-width:40rem}}@media (width>=48rem){.container{max-width:48rem}}@media (width>=64rem){.container{max-width:64rem}}@media (width>=80rem){.container{max-width:80rem}}@media (width>=96rem){.container{max-width:96rem}}.block{display:block}.hidden{display:none}.inline{display:inline}.shrink{flex-shrink:1}.grow{flex-grow:1}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.filter{filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}:root{color:#f6ecd6;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--bg:#16110c;--topbar:#19130db8;--card:linear-gradient(180deg, #2d2117 0%, #1f160f 100%);--card-border:#ecce9a2e;--ink:#f7ecd6;--muted:#c5b59a;--accent:#e0ba76;--accent-soft:#e0ba761f;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);background:#16110c;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-weight:400;line-height:1.5}*{box-sizing:border-box}html,body,#root{min-height:100%}body{min-height:100svh;color:var(--ink);background:radial-gradient(circle at top,#e0ba7629,#0000 28%),linear-gradient(#1e150f 0%,#120e0a 100%);margin:0}button{font:inherit}.minimal-shell{max-width:42rem;min-height:100svh;padding:calc(.6rem + var(--safe-top)) .9rem calc(1rem + var(--safe-bottom));flex-direction:column;gap:.7rem;margin:0 auto;display:flex}.top-bar{z-index:20;background:var(--topbar);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid #ecce9a24;border-radius:999px;justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem .65rem;display:flex;position:sticky;top:0}.brand-lockup{align-items:center;gap:.55rem;min-width:0;display:flex}.brand-name{letter-spacing:.02em;white-space:nowrap;font-size:.82rem;font-weight:600}.card-count{color:var(--muted);font-size:.76rem}.top-controls{gap:.35rem;display:flex;overflow-x:auto}.chip,.update-pill,.shuffle-pill{color:var(--muted);white-space:nowrap;background:#ffffff08;border:1px solid #ecce9a24;border-radius:999px;padding:.45rem .7rem;font-size:.74rem}.chip.active{background:var(--accent-soft);color:var(--ink);border-color:#ecce9a42}.update-pill,.shuffle-pill{color:#24180d;background:linear-gradient(#e7c98e 0%,#d5a85a 100%);border-color:#0000;align-self:center;font-weight:700}.gesture-toast{text-align:center;max-width:20rem;color:var(--ink);background:#1d160feb;border:1px solid #ecce9a2e;border-radius:999px;align-self:center;padding:.6rem .9rem;font-size:.84rem;box-shadow:0 18px 40px #00000040}.card-viewport{flex:1;display:flex}.study-card{width:100%;min-height:calc(100svh - 7.5rem - var(--safe-top) - var(--safe-bottom));border:1px solid var(--card-border);background:var(--card);color:var(--ink);border-radius:2rem;flex-direction:column;gap:1rem;padding:1.15rem;display:flex;box-shadow:0 30px 90px #00000059}.front{text-align:center;justify-content:center;align-items:center}.front-copy{text-transform:uppercase;letter-spacing:.16em;color:var(--muted);font-size:.76rem}.front-number{color:var(--accent)}.line-glyph{flex-direction:column;gap:.95rem;width:100%;max-width:15rem;margin:0 auto;display:flex}.line-glyph.compact{background:#ffffff0a;border:1px solid #ecce9a24;border-radius:.9rem;gap:.42rem;max-width:4.6rem;margin:0;padding:.55rem}.line-row{justify-content:center;align-items:center;gap:.95rem;display:flex}.line-glyph.compact .line-row{gap:.4rem}.yang,.yin{background:linear-gradient(90deg,#f7e2bf 0%,#d8aa5c 100%);border-radius:999px;height:.92rem}.line-glyph.compact .yang,.line-glyph.compact .yin{height:.42rem}.yang{width:100%}.yin{width:calc(50% - .5rem)}.line-glyph.compact .yin{width:calc(50% - .2rem)}.back-header{justify-content:space-between;align-items:flex-start;gap:1rem;display:flex}.back-number{color:var(--accent);margin-bottom:.2rem;font-size:.84rem;font-weight:600}.back-title{margin:0;font-size:clamp(1.8rem,6vw,2.4rem);line-height:1.04}.back-meta,.trigram-card span,.trigram-card small{color:var(--muted)}.character{font-size:3rem;line-height:1}.meaning,.judgment,.mnemonic{margin:0;font-size:1rem}.trigram-stack{gap:.75rem;display:grid}.trigram-card{background:#ffffff0a;border-radius:1rem;grid-template-columns:auto 1fr;align-items:center;gap:.8rem;padding:.85rem .9rem;display:grid}.trigram-card span{text-transform:uppercase;letter-spacing:.12em;font-size:.74rem;display:block}.trigram-card strong{margin-top:.1rem;display:block}@media (width<=640px){.top-bar{border-radius:1.1rem;flex-direction:column;align-items:flex-start}.top-controls{width:100%}.study-card{min-height:calc(100svh - 8.6rem - var(--safe-top) - var(--safe-bottom))}.back-header{flex-direction:column}.character{font-size:2.5rem}}.floating-menu-button{top:calc(.55rem + var(--safe-top));z-index:40;color:#f7ecd699;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#120e0a6b;border:1px solid #ecce9a1a;border-radius:999px;place-items:center;width:1.85rem;height:1.85rem;font-size:1rem;line-height:1;display:grid;position:fixed;left:.5rem}.top-bar.minimal{justify-content:center;padding-inline:2rem}.brand-lockup.centered{justify-content:center;width:100%}.sidebar-backdrop{z-index:29;background:#00000059;border:0;position:fixed;inset:0}.sidebar{z-index:30;width:min(20rem,86vw);padding:calc(1rem + var(--safe-top)) .9rem 1rem;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#18120df5;border-right:1px solid #ecce9a1f;flex-direction:column;gap:1rem;transition:transform .18s;display:flex;position:fixed;top:0;bottom:0;left:0;transform:translate(-104%)}.sidebar.open{transform:translate(0)}.sidebar-header,.sidebar-title,.sidebar-option,.admin-top-row,.section-heading-row,.run-panel-row{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.sidebar-title,.admin-eyebrow{text-transform:uppercase;letter-spacing:.14em;color:var(--accent);font-size:.72rem}.sidebar-list,.constructor-list{gap:.55rem;display:grid}.sidebar-option,.constructor-item{text-align:left;width:100%;color:var(--ink);background:#ffffff08;border:1px solid #ecce9a1a;border-radius:1rem;justify-content:space-between;align-items:center;gap:.75rem;padding:.8rem .9rem;display:flex}.sidebar-option.active,.constructor-item.active{background:#e0ba761f}.sidebar-option small,.constructor-item small,.run-panel small,.admin-copy,.empty-copy{color:var(--muted);display:block}.constructor-item>div,.run-panel-row>div,.section-heading-row>div{min-width:0}.constructor-item span{color:var(--muted);text-transform:capitalize;background:#ffffff0d;border-radius:999px;flex-shrink:0;padding:.28rem .62rem;font-size:.72rem}.ghost-mini{color:var(--ink);background:#ffffff08;border:1px solid #ecce9a24;border-radius:999px;padding:.45rem .7rem}.admin-shell{flex-direction:column;gap:.9rem;width:100%;max-width:100%;display:flex}.admin-card{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#19130db8;border:1px solid #ecce9a24;border-radius:1.4rem;padding:1rem}.admin-heading,.section-heading{margin:0;line-height:1.15}.admin-copy,.empty-copy,.run-panel small,.output-preview pre{line-height:1.55}.admin-link-button{color:#24180d;background:linear-gradient(#e7c98e 0%,#d5a85a 100%);border:0;border-radius:999px;padding:.7rem 1rem;font-weight:700}.admin-link-button.inline{padding:.55rem .85rem}.constructors-grid{grid-template-columns:1.05fr 1fr;align-items:start;gap:.9rem;display:grid}.field-stack{gap:.55rem;margin-top:.9rem;display:grid}.field-stack span{color:var(--ink);font-weight:600}.field-stack input,.field-stack textarea{width:100%;color:var(--ink);background:#ffffff0a;border:1px solid #ecce9a1f;border-radius:1rem;padding:.85rem .95rem;font-size:1rem}.field-stack textarea{resize:vertical;min-height:11rem}.checkbox-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem;display:grid}.check-card{background:#ffffff08;border:1px solid #ecce9a1a;border-radius:1rem;align-items:flex-start;gap:.7rem;padding:.85rem;display:flex}.check-card input{flex-shrink:0;width:1.05rem;height:1.05rem;margin-top:.15rem}.check-card strong,.check-card small,.output-preview pre{overflow-wrap:anywhere}.check-card small{color:var(--muted);display:block}.selected-field-pills{flex-wrap:wrap;gap:.45rem;margin-top:.75rem;display:flex}.small-pill{color:var(--muted);background:#ffffff0d;border-radius:999px;padding:.32rem .62rem;font-size:.74rem}.small-pill.highlight{color:var(--ink);background:#e0ba7624}.run-panel{gap:.8rem;margin-top:1rem;display:grid}.run-status{color:var(--accent);margin:0}.error-copy{color:#ffb4a8}.output-preview{background:#ffffff0a;border-radius:1rem;padding:.85rem;overflow:auto}.output-preview pre{white-space:pre-wrap;color:var(--muted);margin:.55rem 0 0;font-size:.84rem}@media (width<=900px){.constructors-grid,.checkbox-grid{grid-template-columns:1fr}}@media (width<=720px){.minimal-shell{max-width:none;padding-inline:.7rem}.admin-shell{gap:.75rem}.admin-card{border-radius:1.15rem;padding:.9rem}.admin-top-row,.section-heading-row,.run-panel-row,.constructor-item{flex-direction:column;align-items:stretch}.constructor-item span{align-self:flex-start}.ghost-mini,.admin-link-button,.admin-link-button.inline{justify-content:center;align-items:center;width:100%;display:inline-flex}.selected-field-pills{gap:.4rem}}@media (width<=560px){.field-stack{margin-top:.8rem}.check-card{padding:.8rem}.output-preview{padding:.75rem}.output-preview pre{font-size:.8rem}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
