/* Records OS 1995/1998 police workstation skin. Original, non-Sonoran branding. */
body[data-phosphor="classic"]{
 color-scheme:light;
 --bg:#1c3855;--bg2:#e7e5d6;--surface:#c5c6b9;--surface2:#d5d6c9;
 --surface3:#e5e4d7;--edge:#6a695f;--edge2:#a5a493;--ink:#242a2a;
 --muted:#565b55;--dim:#666b62;--accent:#173567;--accent2:#395e9d;
 --warning:#7c581f;--danger:#8c3434;--shadow:rgba(0,0,0,.38);
 --title:#182c49;--font:Tahoma,"MS Sans Serif",Verdana,Arial,sans-serif;
 background:#0b223d;color:#242a2a;font-size:12px;line-height:1.46;
}
body[data-phosphor="classic"]:before{box-shadow:inset 0 0 50px rgba(5,16,32,.18)}
body[data-phosphor="classic"] .crt-glass{display:none}
body[data-phosphor="classic"] .desktop{background:#213f60}
body[data-phosphor="classic"] .desktop-field{
 background:linear-gradient(110deg,rgba(31,65,104,.12),transparent 65%),#24476d;
}
body[data-phosphor="classic"] .desktop-field:before{display:none}
body[data-phosphor="classic"] .desktop-brand{top:auto;bottom:10%;right:4%;color:#bcc9d0;opacity:.13}
body[data-phosphor="classic"] .brand-seal{border-style:double;box-shadow:none}
body[data-phosphor="classic"] .desktop-brand h1{font-family:"Courier New",monospace;font-size:34px;letter-spacing:3px}
body[data-phosphor="classic"] .desktop-info{color:#b4c0c9;opacity:.65;font:11px/1.6 "Courier New",monospace}
body[data-phosphor="classic"] .system-header{
 background:#d8d9cc;border:0;border-bottom:2px solid #f5f4e5;box-shadow:0 2px 0 #74796f;
 height:38px;padding:0 13px;
}
body[data-phosphor="classic"] .system-title{font:700 11px "Courier New",monospace;color:#132947;letter-spacing:.6px}
body[data-phosphor="classic"] .system-header .muted{color:#4e574f}
body[data-phosphor="classic"] .system-led{width:8px;height:8px;background:#53836c;border:1px solid #21432a;box-shadow:none;border-radius:0}
body[data-phosphor="classic"] .desktop-icons{grid-template-columns:repeat(2,112px);grid-auto-rows:105px;gap:9px;padding:25px}
body[data-phosphor="classic"] .desktop-icon{color:#f0f3ee;font-weight:600;text-shadow:1px 2px #16263d;font-size:11px;gap:6px}
body[data-phosphor="classic"] .desktop-icon:hover,
body[data-phosphor="classic"] .desktop-icon:focus-visible{background:#17396377;border:1px dotted #dfebf5}
body[data-phosphor="classic"] .desktop-icon-image{
 background:linear-gradient(145deg,#f7edc9 0 46%,#d5c79d 47% 100%);
 color:#213759;border:2px outset #e9dfc4;box-shadow:2px 3px 0 #162a45;
 width:48px;height:43px;
}
body[data-phosphor="classic"] .desktop-icon-image svg{filter:drop-shadow(1px 1px #969b9a)}
body[data-phosphor="classic"] .taskbar{
 background:#c7c8bc;border-top:2px solid #fbfbee;
 box-shadow:0 -1px #777b73;height:43px;padding:4px 7px;gap:6px;
}
body[data-phosphor="classic"] .start-btn,
body[data-phosphor="classic"] .task-button,
body[data-phosphor="classic"] .btn,
body[data-phosphor="classic"] .window-controls button,
body[data-phosphor="classic"] .start-link{
 background:#c6c7bc;color:#202825;border:2px outset #f1f1e6;border-radius:0;
 font-family:Tahoma,Verdana,Arial,sans-serif;letter-spacing:0;
}
body[data-phosphor="classic"] .start-btn{font-weight:700;padding:0 13px;height:31px;color:#18294a}
body[data-phosphor="classic"] .start-btn:active,
body[data-phosphor="classic"] .btn:active,
body[data-phosphor="classic"] .window-controls button:active{border-style:inset;transform:translate(1px,1px)}
body[data-phosphor="classic"] .task-button{height:30px;font-size:11px;padding:4px 10px;max-width:185px}
body[data-phosphor="classic"] .task-button.active{border-style:inset;background:#aeafa5;color:#101b2c}
body[data-phosphor="classic"] .task-divider{background:#8f948c;border-right:1px solid #e5e6dd}
body[data-phosphor="classic"] .clock{font:11px/1.12 Tahoma,Verdana,sans-serif;color:#1b2834;background:#c6c7bc;border:2px inset #f1f0e5;padding:3px 8px;min-width:88px}
body[data-phosphor="classic"] .clock .dim{color:#5e6260}
body[data-phosphor="classic"] .start-menu{background:#c8c9bd;border:2px outset #fbfaed;box-shadow:4px 5px 0 #06142b77;width:280px;bottom:44px}
body[data-phosphor="classic"] .start-heading{background:#13305f;color:#fff;border:0;font:700 13px Tahoma,sans-serif;padding:12px}
body[data-phosphor="classic"] .start-link{display:flex;width:100%;text-align:left;border:0;background:transparent;padding:10px 11px}
body[data-phosphor="classic"] .start-link:hover{background:#15336b;color:white}
body[data-phosphor="classic"] .start-hr{border-color:#92968e}
body[data-phosphor="classic"] .os-window{
 background:#c9cabd;border:2px outset #ecece0;
 box-shadow:2px 2px 0 #424e58,7px 9px 0 #091c3470;
 min-width:370px;
}
body[data-phosphor="classic"] .os-window.focused{border:2px outset #f8f8ed;box-shadow:2px 2px 0 #333f48,8px 12px 0 #091c3499}
body[data-phosphor="classic"] .window-header{
 background:#777e86;height:29px;border-bottom:0;padding:0 3px 0 7px;
 cursor:move;gap:4px;
}
body[data-phosphor="classic"] .os-window.focused .window-header{background:linear-gradient(90deg,#142d5f,#48668b)}
body[data-phosphor="classic"] .window-title{color:white;font:700 11px/1 Tahoma,Verdana,sans-serif;letter-spacing:0}
body[data-phosphor="classic"] .window-title svg{width:15px;height:15px;color:#e4d78a}
body[data-phosphor="classic"] .window-controls{gap:2px}
body[data-phosphor="classic"] .window-controls button{
 width:19px;height:18px;min-width:19px;border:2px outset #eeeede;background:#c9c9bb;
 padding:1px;color:#1f2630;
}
body[data-phosphor="classic"] .window-controls button svg{width:12px;height:12px;stroke-width:2.8}
body[data-phosphor="classic"] .window-controls button:hover{color:#152d61;border-color:#fff}
body[data-phosphor="classic"] .window-toolbar{
 padding:5px 10px;min-height:26px;background:#e6e5d8;color:#4f514b;
 font:10px "Courier New",monospace;border-bottom:2px groove #ecebe0;
}
body[data-phosphor="classic"] .window-toolbar-right .system-led{display:none}
body[data-phosphor="classic"] .window-body{background:#cbcbbf;color:#272e31;padding:16px 15px}
body[data-phosphor="classic"] .window-footer{background:#c6c7bd;color:#5d6263;border-top:2px inset #fafbf3;padding:3px 7px;font:10px "Courier New",monospace;letter-spacing:0}
body[data-phosphor="classic"] .btn{
 min-height:29px;padding:5px 11px;box-shadow:none;white-space:normal;
 font-size:11px;line-height:1.1;
}
body[data-phosphor="classic"] .btn:hover{background:#d3d4c8;color:#10254e;border-color:#f8f8ed}
body[data-phosphor="classic"] .btn-primary{background:#183b73;color:white;border:2px outset #335c91;font-weight:700}
body[data-phosphor="classic"] .btn-primary:hover{background:#28518e;color:white}
body[data-phosphor="classic"] .btn-danger{color:#6c2527}
body[data-phosphor="classic"] .btn-danger:hover{background:#ead3cc;color:#7d1717}
body[data-phosphor="classic"] .btn-small{padding:3px 7px;min-height:24px;font-size:10px}
body[data-phosphor="classic"] .form-input,
body[data-phosphor="classic"] .form-select,
body[data-phosphor="classic"] .form-textarea{
 background:#f4f3eb;color:#242b2b;border:2px inset #f0f0e5;
 box-shadow:none;padding:6px 8px;min-height:30px;border-radius:0;
 font:12px Tahoma,Verdana,sans-serif;
}
body[data-phosphor="classic"] .form-input:focus,
body[data-phosphor="classic"] .form-select:focus,
body[data-phosphor="classic"] .form-textarea:focus{outline:1px dotted #1d356b;box-shadow:none;border-color:#797c78}
body[data-phosphor="classic"] .form-label{font:bold 10px "Courier New",monospace;letter-spacing:0;color:#454a46}
body[data-phosphor="classic"] .eyebrow{color:#4c5b67;letter-spacing:.4px;font:bold 10px "Courier New",monospace}
body[data-phosphor="classic"] .pane-heading{color:#183258;font:bold 18px Tahoma,Verdana,sans-serif;letter-spacing:-.4px}
body[data-phosphor="classic"] .pane-sub{color:#555b56;font:10px "Courier New",monospace}
body[data-phosphor="classic"] .tag{border:1px solid #7b817a;background:#e3e4d7;color:#172f58;font:bold 10px Tahoma,sans-serif;letter-spacing:0;padding:3px 7px}
body[data-phosphor="classic"] .muted{color:#62665f}
body[data-phosphor="classic"] .dim,body[data-phosphor="classic"] .subtle{color:#666e67}
body[data-phosphor="classic"] .accent{color:#113c70;font-weight:bold}
body[data-phosphor="classic"] .note,
body[data-phosphor="classic"] .form-intro{background:#deded1;border:1px solid #8f9389;color:#444d4a;padding:8px 10px}
body[data-phosphor="classic"] .table-wrap{border:2px inset #eeeede;background:#f3f2e7}
body[data-phosphor="classic"] .data-table{background:#f3f2e8;color:#252a2d}
body[data-phosphor="classic"] .data-table th{background:#203d6b;color:#fff;border-bottom:1px solid #4b6787;font:bold 10px Tahoma,Verdana,sans-serif;letter-spacing:0;padding:8px}
body[data-phosphor="classic"] .data-table td{border-bottom:1px solid #cecec3;padding:8px}
body[data-phosphor="classic"] .data-table tbody tr:nth-child(even){background:#e9e9dd}
body[data-phosphor="classic"] .data-table tbody tr:hover{background:#d8e1ec}
body[data-phosphor="classic"] .stat-tile,
body[data-phosphor="classic"] .meta-cell,
body[data-phosphor="classic"] .record-value,
body[data-phosphor="classic"] .record-summary{background:#e7e6da;border:1px solid #a6a89b}
body[data-phosphor="classic"] .meta-cell span,body[data-phosphor="classic"] .record-value label{color:#505a55;font:bold 10px "Courier New",monospace}
body[data-phosphor="classic"] .record-value{border-left:3px solid #385d89}
body[data-phosphor="classic"] .record-summary{color:#2f3834}
body[data-phosphor="classic"] .stat-value{color:#16345c}
body[data-phosphor="classic"] .section-title{color:#163863;font:bold 11px "Courier New",monospace;border-bottom:2px groove #b8b8ac;letter-spacing:0}
body[data-phosphor="classic"] .record-section{margin-top:18px}
body[data-phosphor="classic"] .empty{border:2px inset #eeeede;background:#dfdfd3;color:#5b6664}
body[data-phosphor="classic"] .admin-nav{border-right:2px groove #eeeede}
body[data-phosphor="classic"] .admin-nav button{color:#323937}
body[data-phosphor="classic"] .admin-nav button.active,
body[data-phosphor="classic"] .admin-nav button:hover{background:#1c3d75;color:#fff}
body[data-phosphor="classic"] .perm-group{border:1px solid #9e9f92;background:#e4e4d9}
body[data-phosphor="classic"] .perm-group h3{color:#fff;background:#274572;border-color:#a4a7a7}
body[data-phosphor="classic"] .perm-row{border-color:#c6c5b8}
body[data-phosphor="classic"] .profile-banner{background:#deded1;border:2px inset #f4f3ea}
body[data-phosphor="classic"] .terminal-block{background:#142438;color:#bcd3e3;border:2px inset #969f9e}
body[data-phosphor="classic"] .terminal-block b{color:#f6e7a1}
body[data-phosphor="classic"] .toast{background:#e5e5db;border:2px outset #f4f4ed;color:#1c324c;box-shadow:4px 4px #1019288e}
body[data-phosphor="classic"] .toast.error{background:#f2dedb;color:#722c25;border:2px outset #ece8df}
body[data-phosphor="classic"] .modal{background:#c9cabf;border:3px outset #fff;color:#28312e;box-shadow:6px 7px #12192a88}
body[data-phosphor="classic"] .modal h3{color:#1c3964}
body[data-phosphor="classic"] .modal p{color:#4c5654}
body[data-phosphor="classic"] .login{
 background:#1f4063;padding:30px;
}
body[data-phosphor="classic"] .login-card{max-width:820px;background:#c7c8ba;border:3px outset #f6f7ed;box-shadow:11px 15px 0 #0c234288}
body[data-phosphor="classic"] .login-top{background:#173462;color:#fff;padding:7px 12px;border:0;letter-spacing:0;font-weight:700}
body[data-phosphor="classic"] .login-main{grid-template-columns:1fr 1fr;min-height:340px}
body[data-phosphor="classic"] .login-left{border-right:2px groove #fff;padding:26px;background:#c7c8ba}
body[data-phosphor="classic"] .mark{color:#224a77;letter-spacing:1px}
body[data-phosphor="classic"] .login h1{font:bold 33px "Courier New",monospace;color:#1e355b;letter-spacing:-1px;text-shadow:none}
body[data-phosphor="classic"] .login h1 span{color:#344e7a}
body[data-phosphor="classic"] .login-desc,
body[data-phosphor="classic"] .login-bottom-text{color:#4b514c}
body[data-phosphor="classic"] .login-right{background:#dbdbcf;padding:26px;gap:14px}
body[data-phosphor="classic"] .login-badge{width:80px;height:80px;border:2px groove #fff;color:#1d4070;box-shadow:none;border-radius:0}
body[data-phosphor="classic"] .login-badge svg{width:46px;filter:none}
body[data-phosphor="classic"] .login-right h2{color:#173968}
body[data-phosphor="classic"] .login-right p{color:#555d58}
body[data-phosphor="classic"] .login-footer{color:#555b54;border-top:2px groove #fff;padding:8px}
body[data-phosphor="classic"] .login-error{background:#f0d6ce;color:#792f20;border:1px solid #9b5148}
/* Form template builder shared across every skin */
.template-picker{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:16px}
.template-choice{border:2px outset #ccc;background:var(--surface2);padding:16px;text-align:left;color:var(--ink);display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:110px}
.template-choice strong{font-size:13px}.template-choice small{color:var(--muted)}
.template-choice:hover{outline:2px solid var(--accent)}
.tpl-stack{margin-top:16px;display:flex;flex-direction:column;gap:16px}
.tpl-section{border:2px groove #9e9d90;background:var(--surface2);padding:10px}
.tpl-section-header{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--accent);color:white;padding:6px 9px;margin:-10px -10px 12px;font-size:11px}
body:not([data-phosphor="classic"]) .tpl-section-header{background:var(--surface3);color:var(--accent)}
.tpl-section-header .btn-danger{background:var(--surface3)}
.tpl-section-config{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:10px}
.tpl-field{margin:9px 0;background:var(--surface);border:1px solid var(--edge2);padding:9px}
.tpl-field-main{display:grid;grid-template-columns:36px minmax(100px,1fr) minmax(120px,1.5fr) minmax(105px,1fr) 32px;align-items:end;gap:9px}
.tpl-counter{font:700 11px "Courier New",monospace;padding-bottom:10px;color:var(--muted)}
.tpl-field-options{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:9px;border-top:1px solid var(--edge2);padding-top:8px}
.tpl-field-options>label:not(.form-group){display:flex;align-items:center;gap:5px;white-space:nowrap;font-size:11px}
.tpl-field-options input[type=checkbox]{accent-color:#244d87}
.tpl-mapping{min-width:210px;flex:1}.tpl-options{min-width:185px;flex:1}
.tpl-options .form-textarea{min-height:45px}
.tpl-footer{margin-top:13px}.form-section{border:1px solid var(--edge2);background:var(--surface2);padding:12px}
.form-section .section-title{margin:0}.source-note{margin:10px 0}
@media(max-width:850px){.tpl-field-main{grid-template-columns:25px 1fr 1fr}.tpl-field-main .btn-danger{grid-column:3;justify-self:end}.tpl-section-config{grid-template-columns:1fr}}
@media(max-width:620px){body[data-phosphor="classic"] .login-main{grid-template-columns:1fr}body[data-phosphor="classic"] .os-window{min-width:0}.tpl-field-main{display:flex;flex-direction:column;align-items:stretch}.tpl-field-main .form-group{width:100%}.tpl-field-options{gap:9px}}

.record-preview{margin-top:4px;max-width:400px;line-height:1.5;overflow-wrap:anywhere}

.tpl-move{display:flex;align-items:center;gap:3px}.tpl-move .btn{min-width:24px;padding:4px 6px}.tpl-field-main{grid-template-columns:36px minmax(100px,1fr) minmax(120px,1.5fr) minmax(105px,1fr) auto}
/* v1.2: Win95 Einzelimport und Vorlagenverwaltung */
body[data-phosphor="classic"] .tpl-field-record{display:flex;align-items:stretch;gap:7px;width:100%}
body[data-phosphor="classic"] .tpl-field-record>.form-input,
body[data-phosphor="classic"] .tpl-field-record>.form-select,
body[data-phosphor="classic"] .tpl-field-record>.form-textarea{flex:1;min-width:0}
body[data-phosphor="classic"] .tpl-field-record>.btn{align-self:flex-start;white-space:nowrap;min-height:31px;background:#c9c9bd;color:#102c58;border:2px outset #f1f1e8;border-radius:0}
body[data-phosphor="classic"] .tpl-field-record>.btn:active{border-style:inset}
body[data-phosphor="classic"] .tpl-section-config{grid-template-columns:1fr}
body[data-phosphor="classic"] .form-section .subtle[data-source-note]{font:10px "Courier New",monospace;color:#42617f;padding-top:4px}
body[data-phosphor="classic"] .form-section .records-header{margin-bottom:10px}
@media(max-width:680px){body[data-phosphor="classic"] .tpl-field-record{flex-direction:column}}
/* v1.4: Freely arranged Windows-95 desktop shortcuts and real persistent taskbar pins. */
body[data-phosphor="classic"] .desktop-icons{
  position:absolute;inset:0;display:block;width:100%;height:100%;padding:0;
  pointer-events:none;z-index:2;
}
body[data-phosphor="classic"] .desktop-icon{
  position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;
  width:104px;height:92px;min-width:0;padding:7px 4px;gap:6px;
  pointer-events:auto;cursor:grab;touch-action:none;user-select:none;
  background:transparent;border:1px solid transparent;text-shadow:1px 1px 1px #0c1c38;
}
body[data-phosphor="classic"] .desktop-icon:active,
body[data-phosphor="classic"] .desktop-icon.dragging{cursor:grabbing;background:#173963a8;border:1px dotted #f7f7e9;z-index:8}
body[data-phosphor="classic"] .desktop-icon-label{max-width:104px;overflow-wrap:anywhere;line-height:1.3;max-height:39px;overflow:hidden}
body[data-phosphor="classic"] .task-pins{display:flex;gap:3px;align-items:center;flex:none;max-width:min(46vw,480px);overflow-x:auto;scrollbar-width:thin}
body[data-phosphor="classic"] .task-pin{
  min-width:34px;width:34px;height:30px;display:grid;place-items:center;
  color:#19355c;background:#c7c8bc;border:2px outset #f4f3ea;border-radius:0;
  cursor:pointer;flex:none;
}
body[data-phosphor="classic"] .task-pin:hover{background:#e2e3d6}
body[data-phosphor="classic"] .task-pin:active{border-style:inset}
body[data-phosphor="classic"] .task-pins-divider[hidden]{display:none}
body[data-phosphor="classic"] .task-open{min-width:55px}
body[data-phosphor="classic"] .start-item{display:flex;align-items:stretch;cursor:grab;position:relative}
body[data-phosphor="classic"] .start-item:hover{background:#163568;color:#fff}
body[data-phosphor="classic"] .start-item .start-link{flex:1;min-width:0}
body[data-phosphor="classic"] .start-item-pin{
  border:0;background:transparent;color:#364d66;display:grid;place-items:center;
  width:34px;flex:none;cursor:pointer;
}
body[data-phosphor="classic"] .start-item:hover .start-item-pin{color:#fff}
body[data-phosphor="classic"] .start-item-pin:hover{background:#315587}
body[data-phosphor="classic"] .start-subtitle{font:700 10px "Courier New",monospace;padding:8px 10px 3px;color:#354d66}
body[data-phosphor="classic"] .start-menu{width:312px}
body[data-phosphor="classic"] .os-context{
  position:fixed;z-index:10000;min-width:182px;background:#c8c9bd;border:2px outset #fbfaed;
  box-shadow:3px 4px 0 #06142b77;padding:3px;
}
body[data-phosphor="classic"] .os-context button{
  display:block;width:100%;font:11px Tahoma,Verdana,sans-serif;text-align:left;
  border:0;background:transparent;color:#202825;padding:8px 12px;cursor:pointer;
}
body[data-phosphor="classic"] .os-context button:hover{background:#163568;color:#fff}
@media(max-width:620px){
  body[data-phosphor="classic"] .desktop-icons{display:block;padding:0}
  body[data-phosphor="classic"] .desktop-icon{width:100px;height:92px;touch-action:manipulation}
  body[data-phosphor="classic"] .task-pins{max-width:40vw}
  body[data-phosphor="classic"] .task-pin{width:30px;min-width:30px}
}
