
:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#182e36;background:#f2f6f7}*{box-sizing:border-box}body{margin:0}.shell{max-width:850px;margin:0 auto;padding:24px 16px 64px}.hero{background:linear-gradient(125deg,#085362,#0b8b9d);color:white;border-radius:22px;padding:24px;display:flex;align-items:center;gap:17px}.hero img{width:66px;height:66px;border-radius:17px;object-fit:cover}.hero h1{font-size:26px;margin:0 0 5px}.hero p{margin:0;color:#d5f2f3;font-size:13px}.tabs{display:flex;gap:10px;margin:16px 0}.tabs button{flex:1}button{font:inherit;cursor:pointer;border:0;border-radius:11px;background:#0a7484;color:white;padding:12px 16px;font-weight:600}button.secondary{background:#e2eef0;color:#125666}button.danger{background:#fff0ee;color:#b13636}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #8cdae4;outline-offset:2px}.tabs button:not(.active){background:#dae7ea;color:#37565e}.panel{background:#fff;border-radius:17px;padding:20px;margin:14px 0;box-shadow:0 3px 18px #11434f0a}.panel h2{font-size:17px;margin:0 0 18px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.field label{display:block;font-size:13px;font-weight:600;margin-bottom:7px;color:#34535b}.field small{color:#72919a;font-weight:400}.field input,.field textarea{background:#f3f7f8;width:100%;border:1px solid #dce8ea;border-radius:9px;padding:12px;font:inherit;color:#182e36}.field textarea{min-height:74px;resize:vertical}.wide{grid-column:1/-1}.hint{font-size:12px;color:#7d9297;margin-top:8px}.actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:16px}.total{background:#e6f5f4;border:1px solid #c6e6e3;padding:19px;border-radius:14px}.total strong{font-size:34px;color:#006e7e}.total p{margin:4px 0;color:#507379;font-size:13px}.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat{background:#f4f8f9;border-radius:12px;padding:15px}.stat strong{display:block;margin-top:6px;font-size:22px}.secret{border-left:4px solid #df9d34}.message{font-size:13px;color:#bd5029}.history-item{border:1px solid #e0e9eb;border-radius:12px;padding:15px;margin-bottom:10px}.history-top{display:flex;justify-content:space-between;gap:8px}.history-item p{margin:8px 0;color:#68818a;font-size:13px}.history-item .actions{margin-top:8px}#historyView{display:none}.foot{font-size:12px;color:#738c92;line-height:1.7;text-align:center}.sr{position:absolute;left:-9999px}@media(max-width:560px){.shell{padding:13px 10px 42px}.hero{padding:18px}.hero h1{font-size:21px}.hero img{width:55px;height:55px}.panel{padding:16px}.fields{grid-template-columns:1fr}.total strong{font-size:30px}}

button:disabled{cursor:wait;opacity:.65}.hero>div,.field,.stat{min-width:0}.history-top strong,.total strong,.stat strong{overflow-wrap:anywhere}.history-top strong:first-child{flex:1}.notice:empty{display:none}.notice{margin:12px 0;padding:12px 14px;border-radius:10px;background:#e6f5f4;color:#125666;font-size:14px;overflow-wrap:anywhere}.notice.warning{background:#fff0df;color:#8b4a00}.profit-stats{margin-top:14px}dialog{width:min(600px,calc(100% - 24px));max-height:90vh;border:1px solid #c6e6e3;border-radius:16px;padding:20px;color:#182e36}dialog::backdrop{background:#182e3680}dialog textarea{width:100%;min-height:45vh;font:inherit;font-size:16px;padding:12px;border:1px solid #dce8ea;border-radius:9px}dialog h2{font-size:18px}.field input,.field textarea{font-size:16px}@media(max-width:360px){.hero h1{font-size:19px}.hero{gap:12px}.stats{grid-template-columns:1fr}.actions button{width:100%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

