.server-page{--server-blue:#007aff;--server-fill:#f2f2f7;--server-label:#6e6e73;display:grid;gap:22px;min-width:0}
.server-page h1{margin:0;font-size:28px;font-weight:700;letter-spacing:-.7px}
.server-page>.section-heading{margin:0;align-items:center}
.server-page .panel{min-width:0;border-color:#e5e5ea;border-radius:20px;box-shadow:0 3px 18px #1d1d1f04;background:#fff}
.server-page .btn{min-height:40px;border:1px solid transparent;border-radius:12px;background:var(--server-fill);color:#0070e0;font-weight:550;box-shadow:none;transition:background .16s,box-shadow .16s;touch-action:manipulation}
.server-page .btn:hover{background:#e8e8f0;transform:none;border-color:transparent}
.server-page .btn:active{background:#dedee8}
.server-page .btn-primary{background:var(--server-blue);color:#fff}
.server-page .btn-primary:hover{background:#0069dd}
.server-page .btn-primary:active{background:#005ec9}
.server-page .btn:focus-visible{outline:3px solid #007aff55;outline-offset:3px}
.server-page .btn:disabled{opacity:.45;cursor:not-allowed}
.server-page>.section-heading .btn{padding:10px 18px;min-height:44px}
.server-overview{display:flex;flex-wrap:wrap;gap:12px 26px;padding:18px 20px;border:1px solid #e5e5ea;border-radius:18px;background:#ffffffb8;color:var(--server-label);font-size:13px}
.server-overview b{margin-left:7px;color:#1d1d1f;font-size:19px;font-weight:650;font-variant-numeric:tabular-nums}
.server-fields{min-width:0;border:0;margin:0;padding:0}
.server-editor{scroll-margin-top:155px}
.server-page button{scroll-margin-block:200px 80px}
.server-editor .actions{margin-top:22px;justify-content:flex-end}
.server-editor .actions .btn{min-height:44px;padding-inline:24px}
.server-page .field{color:#636366;font-size:12px;font-weight:550;gap:8px;min-width:0}
.server-page .input{box-sizing:border-box;min-width:0;min-height:46px;border:1px solid #e5e5ea;border-radius:13px;background:#f8f8fa;padding:11px 13px;color:#1d1d1f;font-size:14px;font-weight:400;box-shadow:none}
.server-page .input:focus{background:#fff;border-color:#007aff;box-shadow:0 0 0 3px #007aff18}
.server-page .input:disabled{opacity:.6}
.server-page .input[readonly]{background:#f2f2f7;color:#86868b}
.server-date-button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:48px;padding:11px 14px;border:1px solid transparent;border-radius:13px;background:#f2f2f7;color:#007aff;font-size:14px;font-weight:400;font-variant-numeric:tabular-nums;text-align:left;touch-action:manipulation}
.server-date-button svg{width:21px;height:21px;flex-shrink:0}
.server-date-button:hover{background:#eaeaf2}
.server-date-button[aria-expanded=true]{background:#e8f2ff;border-color:#007aff44}
.server-date-button:focus-visible{outline:3px solid #007aff44;outline-offset:3px}
.server-date-button:disabled{opacity:.5;cursor:not-allowed}
.server-calendar{position:fixed;inset:auto;margin:0;width:344px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;box-sizing:border-box;padding:16px 18px 14px;border:1px solid #ffffffb3;border-radius:24px;background:#fff;color:#1c1c1e;box-shadow:0 20px 70px #1d1d1f26,0 4px 16px #1d1d1f12;font:14px/1.5 -apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",sans-serif;animation:server-calendar-in .16s ease-out}
.server-calendar::backdrop{background:rgba(22,27,40,.09)}
.server-calendar button{font:inherit;border:0;background:none;cursor:pointer;touch-action:manipulation;scroll-margin:0}
.server-calendar button:focus-visible,.server-calendar input:focus-visible,.server-calendar select:focus-visible{outline:3px solid #007aff55;outline-offset:2px}
.server-calendar-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:13px;border-bottom:1px solid #ededf2}
.server-calendar-toolbar h2{margin:0;color:#636366;font-size:12px;font-weight:550}
.server-calendar-toolbar button{padding:6px 0;color:#007aff;font-size:14px;min-height:32px}
.server-calendar-toolbar [data-calendar-done]{font-weight:650}
.server-calendar-navigation{display:flex;align-items:center;justify-content:space-between;margin:15px 0 12px}
.server-calendar-title{padding:4px 0!important;font-size:17px!important;font-weight:650!important;letter-spacing:-.3px}
.server-calendar-title span{color:#007aff;font-size:18px;margin-left:4px}
.server-calendar-navigation>div{display:flex;gap:6px}
.server-calendar-navigation [data-calendar-step]{width:34px;height:34px;padding:7px;color:#007aff;border-radius:50%}
.server-calendar-navigation [data-calendar-step]:hover{background:#f2f2f7}
.server-calendar-navigation svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.server-calendar button:disabled{opacity:.25;cursor:not-allowed}
.server-calendar-week,.server-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center}
.server-calendar-week{margin-bottom:7px;color:#8e8e93;font-size:11px;font-weight:550}
.server-calendar-week span{padding:4px 0}
.server-calendar-days{row-gap:5px}
.server-calendar-days button{justify-self:center;display:grid;place-items:center;width:36px;height:36px;padding:0;border-radius:50%;color:#1c1c1e;font-size:17px;font-weight:400;font-variant-numeric:tabular-nums}
.server-calendar-days button:hover{background:#f2f2f7}
.server-calendar-days .is-today{color:#007aff;font-weight:600}
.server-calendar-days .is-selected,.server-calendar-days .is-selected:hover{background:#007aff;color:#fff;font-weight:600;box-shadow:0 3px 8px #007aff26}
.server-calendar-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:14px;margin-top:13px;border-top:1px solid #ededf2}
.server-calendar-footer button{color:#007aff;font-weight:550;padding:3px 0;min-height:30px}
.server-calendar-footer span{font-size:12px;color:#8e8e93;font-variant-numeric:tabular-nums}
.server-calendar-month-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 16px;padding:12px;background:#f2f2f7;border-radius:14px}
.server-calendar-month-controls label{display:grid;gap:5px;font-size:11px;color:#8e8e93}
.server-calendar-month-controls input,.server-calendar-month-controls select{box-sizing:border-box;width:100%;min-width:0;padding:7px 9px;border:0;border-radius:9px;background:white;color:#1c1c1e;font:15px -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.server-calendar-handle{display:none}
@keyframes server-calendar-in{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.server-date-button{font-size:16px}.server-calendar{inset:auto 0 0!important;width:100%;max-width:none;max-height:calc(100dvh - 24px);padding:10px max(20px,calc((100vw - 370px)/2)) calc(18px + env(safe-area-inset-bottom));border-radius:26px 26px 0 0;border-bottom:0;box-shadow:0 -10px 60px #1d1d1f1f;animation:server-calendar-sheet-in .2s ease-out}.server-calendar::backdrop{background:rgba(22,27,40,.26);backdrop-filter:blur(3px)}.server-calendar-handle{display:block;width:36px;height:5px;margin:0 auto 9px;background:#d1d1d6;border-radius:4px}.server-calendar-toolbar{padding-bottom:10px}.server-calendar-toolbar button{min-height:38px;font-size:16px}.server-calendar-days button{width:min(42px,100%);height:42px;font-size:19px}.server-calendar-days{row-gap:5px}.server-calendar-navigation{margin-top:16px}.server-calendar-footer{margin-top:15px;padding-top:12px}.server-calendar-month-controls input,.server-calendar-month-controls select{font-size:16px}}
@keyframes server-calendar-sheet-in{from{opacity:.5;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.server-calendar{animation:none}}
.server-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-bottom:20px}
.server-filters>.field{flex:1;min-width:130px}
.server-filters>.field:first-child{flex:1.5;min-width:190px}
.server-filters>.btn{min-height:46px}
.server-table-wrap{width:100%;overflow:auto;border:1px solid #e5e5ea;border-radius:16px;-webkit-overflow-scrolling:touch}
.server-table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px;text-align:left;white-space:nowrap}
.server-table th{padding:14px 12px;background:#f8f8fa;color:#86868b;font-size:11px;font-weight:600;border-bottom:1px solid #e5e5ea}
.server-table td{padding:18px 12px;vertical-align:middle;border-bottom:1px solid #eeeef2;background:#fff}
.server-table tbody tr:last-child td{border-bottom:0}
.server-table tbody tr:hover td{background:#fafaff}
.server-table td strong{display:block;font-weight:600;color:#1d1d1f}
.server-table td small{display:block;margin-top:5px;color:var(--muted);font-size:11px}
.server-table td small.pending{color:#a46300}
.server-table td small.danger{color:var(--red)}
.server-table th:last-child,.server-table td:last-child{position:sticky;right:0;border-left:1px solid #eeeef2;box-shadow:-8px 0 12px -12px #1d1d1f40}
.server-row-actions{display:flex;flex-direction:column;gap:9px;min-width:192px;align-items:stretch}
.server-row-actions .server-renew-action{min-height:40px;padding:9px 16px;font-size:12px;border-radius:11px}
.server-secondary-actions{display:grid;grid-template-columns:1.2fr 1fr .8fr;gap:2px;padding:3px;background:#f2f2f7;border-radius:11px}
.server-secondary-actions .btn{min-height:34px;padding:6px 8px;font-size:11px;border-radius:8px;background:transparent;white-space:nowrap;color:#636366}
.server-secondary-actions .btn:hover{background:#fff;box-shadow:0 1px 4px #1d1d1f12}
.server-secondary-actions .btn-danger{color:#d92925}
.server-secondary-actions .btn-danger:hover{background:#fff0ef}
.server-toggle{display:inline-flex;align-items:center;gap:7px;min-height:44px;padding:0;border:0;background:none;color:#86868b;font-size:11px;touch-action:manipulation}
.server-toggle i{position:relative;display:block;flex-shrink:0;width:36px;height:22px;border-radius:14px;background:#e5e5ea;transition:background .18s}
.server-toggle i:after{content:'';position:absolute;width:18px;height:18px;top:2px;left:2px;border-radius:50%;background:white;box-shadow:0 1px 4px #0003;transition:transform .18s}
.server-toggle.is-on{color:#248a3d}
.server-toggle.is-on i{background:#34c759}
.server-toggle.is-on i:after{transform:translateX(14px)}
.server-toggle:disabled{opacity:.5;cursor:wait}
.server-toggle:focus-visible{outline:3px solid #007aff55;outline-offset:4px;border-radius:7px}
.server-pager{margin-top:18px;align-items:center}
.server-mail-settings{margin-top:20px;max-width:700px}
.server-mail-settings .help{line-height:1.85}
.server-mail-settings .btn{min-height:44px;padding-inline:20px}
.server-page summary{cursor:pointer;font-weight:600;color:#3a3a3c}
.server-page input[type=checkbox]{width:18px;height:18px;accent-color:#007aff}
@media(max-width:700px){.server-page{gap:18px}.server-page>.section-heading{align-items:stretch}.server-page>.section-heading>.actions{display:grid;grid-template-columns:1fr 1.5fr;width:100%}.server-editor .form-grid{grid-template-columns:1fr}.server-page .panel{padding:16px;border-radius:18px}.server-filters>.field{min-width:calc(50% - 10px)}.server-overview{gap:12px 18px;padding:16px}.server-editor{scroll-margin-top:190px}.server-page .input{font-size:16px}.server-row-actions{min-width:176px}.server-secondary-actions .btn{padding-inline:6px;min-height:38px}.server-row-actions .server-renew-action{min-height:42px}.server-table td{padding:15px 10px}.server-table th{padding-inline:10px}.server-editor .actions .btn{width:100%}.server-pager{flex-wrap:wrap;gap:12px}.server-pager>.actions{margin-left:auto}}
@media(prefers-reduced-motion:reduce){.server-page *{transition:none!important;scroll-behavior:auto!important}}
