:root{--accent: #ffc857;--accent2: #4c6ee9;--bad: #ad0311;--bg: #0f1115;--border: #2d3441;--card: #1e232d;--good: #2ed573;--muted: #a4b0be;--surface: #171a21;--text: #f1f2f6;--warn: #ffa502}*{box-sizing:border-box}html,body,#root{height:100%}body{margin:0;background-color:var(--bg);background-image:url(/assets/cigar-leaves-CSZ04J7X.jpg);background-repeat:repeat;background-size:320px 320px;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.container{max-width:1100px;margin:0 auto;padding:24px}.loading-container{display:flex;justify-content:center;align-items:center;height:200px}.loading-container h1{color:var(--text);font-style:italic}h1,h2,h3{margin:0 0 12px}.header{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:16px}.header-left{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap}.header-left h1{margin:0}.search-input{width:300px;max-width:100%;padding:10px 16px;border-radius:8px;border:1px solid var(--border);background:#0e1218;color:var(--text);font-size:1.05rem;line-height:1.2}.search-input::placeholder{color:var(--muted)}.toolbar{display:flex;flex-wrap:wrap;gap:10px}.toolbar .btn{font-size:.95rem;padding:10px 18px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;line-height:1.1}.btn{background:var(--accent);border:none;border-radius:8px;color:#1a1a1a;cursor:pointer;font-size:1rem;padding:9px 14px}.btn.danger{background:var(--bad);color:#fff}.btn.btn-primary{background:var(--accent);color:var(--bg)}.btn.secondary{background:var(--accent2);color:var(--text)}.btn.secondary.icon-btn,.btn.danger.icon-btn{color:var(--text)}.grid{display:grid;grid-template-columns:1fr;gap:16px}@media (min-width: 920px){.grid{grid-template-columns:360px 1fr;align-items:start}}.cigar-list{display:flex;flex-direction:column;gap:16px}.sort-row{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-bottom:16px}.sort-row__label{font-size:.95rem;color:var(--muted)}.sort-row__select{width:150px;padding:10px 40px 10px 14px;background:#111622;color:var(--text);border:1px solid var(--border);border-radius:8px;appearance:none;background-image:linear-gradient(145deg,#ffffff0a,#0000),url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f1f2f6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat,no-repeat;background-position:center center,right 12px center;background-size:100% 100%,12px 8px;box-shadow:inset 0 0 0 1px #ffffff08;transition:border-color .2s ease,box-shadow .2s ease}.sort-row__select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 2px #ffc85733}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:14px}.input,select,textarea{width:100%;padding:10px 12px;background:#0e1218;border:1px solid var(--border);border-radius:8px;color:var(--text);outline:none}label{display:block;font-size:.9rem;color:var(--muted);margin-bottom:6px}.field{margin-bottom:12px}.row{display:flex;gap:10px}.row>*{flex:1}.form-row-compact .field{min-width:0}.form-row-split{align-items:stretch}.form-row-split .field{display:flex;flex-direction:column;gap:10px}.form-thumb-preview{width:100%;aspect-ratio:1/1;background:#0e1218;border:1px solid var(--border);border-radius:10px;display:grid;place-items:center;overflow:hidden;text-align:center;padding:8px;margin-bottom:10px}.form-thumb-preview img{width:100%;height:100%;object-fit:contain;border-radius:6px}.form-thumb-preview.selectable{cursor:pointer}.form-thumb-preview.readonly{cursor:default}.form-image-actions{gap:8px;margin-top:8px}.rating-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:12px;height:100%}.rating-card h3{margin:0}.rating-card .field{margin-bottom:10px}.rating-card .field:last-of-type{margin-bottom:0}.rating-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;font-weight:600;font-size:1rem;border-top:1px solid var(--border);padding-top:8px;margin-top:auto}.cigar-card{display:flex;gap:20px;align-items:stretch}.cigar-card__media{flex:0 0 150px;display:flex;flex-direction:column;gap:8px}.cigar-card__thumb{align-items:center;aspect-ratio:1/1;border-radius:8px;display:flex;justify-content:center;width:100%}.cigar-card__thumb img{border:1px solid var(--border);border-radius:12px;display:block;max-height:100%;max-width:100%;object-fit:contain;object-position:center}.cigar-card__date{text-align:center}.cigar-card__body{flex:1;display:flex;flex-direction:column;gap:12px}.cigar-card__header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.cigar-card__header h3{margin:0}.cigar-card__quick{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.cigar-card__quick>div{display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}.cigar-card__value{font-weight:600}.cigar-card__meta,.cigar-card__ratings{display:grid;gap:6px 12px}.cigar-card__meta{grid-template-columns:repeat(2,minmax(0,1fr))}.cigar-card__ratings{grid-template-columns:repeat(3,minmax(0,1fr))}.cigar-card__value-metrics{display:flex;gap:12px;margin-top:6px}@media (max-width: 720px){.cigar-card__meta,.cigar-card__ratings{grid-template-columns:repeat(2,minmax(0,1fr))}.cigar-card__value-metrics{flex-direction:column}}.cigar-card__notes{display:grid;gap:6px;white-space:pre-wrap}.cigar-card__section-title{color:var(--accent);font-size:1.5rem;font-style:italic;font-weight:600;margin:0 0 6px}.cigar-card__actions{display:flex;justify-content:space-between;align-items:center;gap:12px}.cigar-card__buttons{display:flex;flex-wrap:wrap;gap:8px}.icon-btn{display:inline-flex;align-items:center;gap:6px}@media (max-width: 720px){.cigar-card{flex-direction:column}.cigar-card__media{flex-direction:row;align-items:center;gap:16px}.cigar-card__thumb{width:120px}.form-row-compact,.form-row-split{flex-direction:column}}.cigar-form{font-size:1.05rem;display:flex;flex-direction:column;gap:14px}.cigar-form label{font-size:1rem}.cigar-form .input,.cigar-form textarea,.cigar-form select{font-size:1rem;padding:12px 14px}.cigar-form textarea{min-height:140px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}.meta{display:grid;grid-template-columns:1fr 1fr;gap:6px 10px;font-size:.9rem;color:var(--muted)}.kv{display:flex;justify-content:flex-start;align-items:baseline;gap:8px}.kv strong{color:var(--text)}.rating-bar{appearance:none;width:100%;height:6px;background:#0e1218;border-radius:999px;outline:none}.rating-bar::-webkit-slider-thumb{appearance:none;width:16px;height:16px;border-radius:50%;background:var(--accent);border:1px solid #000}.statbar{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}.stat{background:var(--surface);border:1px solid var(--border);padding:12px;border-radius:10px;text-align:center}.stat .v{font-size:1.4rem;font-weight:700}.small{font-size:.85rem;color:var(--muted)}.footer-row{display:flex;align-items:center;justify-content:space-between;gap:8px}hr.soft{border:none;border-top:1px solid var(--border);margin:10px 0}
