:root{
  font-family:Inter,"Microsoft YaHei","Segoe UI",sans-serif;
  color:#30343c;
  background:#fcfaf6;
  font-synthesis:none;
  --ink:#30343c;
  --primary:#a6500c;
  --accent:#f28a15;
  --muted:#6b6d70;
  --line:#e5ddd0}
  *{
    box-sizing:border-box}
    body{
      margin:0}
      button,input,select,textarea{
        font:inherit}
        button{
          background:var(--primary);
          color:white;
          border:1px solid var(--primary);
          border-radius:7px;
          padding:10px 17px;
          cursor:pointer;
          font-weight:600}
          button:hover{
            filter:brightness(.94)}
            button:disabled{
              opacity:.5;
              cursor:wait}
              button.secondary{
                background:white;
                color:var(--ink);
                border-color:var(--line)}
                button.small{
                  font-size:13px;
                  padding:7px 11px}
                  button.danger{
                    background:#fff6ed;
                    color:#9a4d1e;
                    border-color:#efc9aa}
                    button.icon-button{
                      padding:2px 9px;
                      font-size:24px;
                      background:none;
                      color:var(--muted);
                      border:0}
                      a{
                        color:var(--primary)}
                        h1,h2,h3,p{
                          margin-top:0}
                          h1{
                            font-size:28px;
                            letter-spacing:-.7px;
                            margin-bottom:8px}
                            h2{
                              font-size:19px;
                              margin-bottom:18px}
                              h3{
                                font-size:16px}
                                p{
                                  line-height:1.7}
                                  label{
                                    display:block;
                                    font-size:14px;
                                    font-weight:600;
                                    margin:15px 0 7px}
                                    input,textarea,select{
                                      width:100%;
                                      border:1px solid #d2c8bb;
                                      border-radius:6px;
                                      background:#fff;
                                      padding:10px 11px;
                                      color:#30343c}
                                      textarea{
                                        min-height:100px;
                                        resize:vertical}
                                        input:focus,textarea:focus,select:focus{
                                          outline:2px solid #c46a12;
                                          outline-offset:2px}
                                          input[type=checkbox]{
                                            width:auto;
                                            margin-right:8px}
                                            small,.muted{
                                              color:var(--muted);
                                              font-size:13px;
                                              line-height:1.65}
                                              .error{
                                                color:#ad352f;
                                                font-size:14px;
                                                min-height:18px;
                                                margin:12px 0}
                                                .loading{
                                                  padding:80px;
                                                  text-align:center}
.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 23px;
  padding: 38px 20px;
  background: #fcfaf6;
}

                                                      .brand{
                                                        font-size:22px;
                                                        font-weight:750;
                                                        letter-spacing:-.5px;
                                                        display:flex;
                                                        gap:12px;
                                                        align-items:center}
                                                        .brand-mark{
                                                          display:inline-grid;
                                                          place-items:center;
                                                          width:35px;
                                                          height:35px;
                                                          border:1px solid #ce8f48;
                                                          border-radius:9px;
                                                          color:#a85410;
                                                          font-size:14px;
                                                          letter-spacing:0}
.brand-artwork {
  display: block;
  width: 200px;
  margin-inline: auto;
}
.brand-artwork img {
  display: block;
  width: 100%;
  height: auto;
}



.auth-panel {
  width: min(100%, 440px);
  padding: 0;
}
.auth-card {
  width: 100%;
  max-width: none;
  padding: 28px;
  border: 1px solid #e3d9ca;
  border-radius: 12px;
  background: #fffdfa;
}
.auth-card h2 {
  font-size: 25px;
}
                                                                      .auth-card button[type=submit]{
                                                                        width:100%;
                                                                        margin-top:22px;
  background:var(--accent);
  border-color:var(--accent);
  color:var(--ink)}
                                                                        .text-button{
                                                                          background:none;
                                                                          color:var(--primary);
                                                                          border:0;
                                                                          padding:0;
                                                                          font-weight:600}
                                                                          .local-badge{
                                                                            display:inline-block;
                                                                            border:1px solid #e4c79d;
  background:#fff4e3;
                                                                            color:#80501c;
                                                                            border-radius:5px;
                                                                            font-size:12px;
                                                                            padding:4px 8px;
                                                                            margin-bottom:22px}
                                                                            .shell{
                                                                              display:grid;
                                                                              grid-template-columns:228px 1fr;
                                                                              min-height:100vh}
                                                                              .sidebar{
                                                                                background:#f6f0e5;
                                                                                color:#343943;
                                                                                padding:30px 20px;
                                                                                display:flex;
                                                                                flex-direction:column;
                                                                                position:fixed;
                                                                                top:0;
                                                                                bottom:0;
                                                                                overflow-y:auto;
                                                                                width:228px}
                                                                                .sidebar .brand{
                                                                                  margin:0 8px 35px}
                                                                                  .sidebar nav{
                                                                                    display:grid;
                                                                                    gap:5px}
                                                                                    .sidebar nav button{
                                                                                      background:none;
                                                                                      border:0;
                                                                                      color:#5e6470;
                                                                                      text-align:left;
                                                                                      padding:12px 14px;
                                                                                      font-weight:500}
                                                                                      .sidebar nav button.active{
                                                                                        background:#f7e5cd;
  box-shadow:inset 3px 0 0 var(--accent);
                                                                                        color:#463a2d}
                                                                                        .sidebar .account{
                                                                                          margin-top:auto;
                                                                                          border-top:1px solid #dfd4c5;
                                                                                          padding:22px 10px 0;
                                                                                          font-size:13px}
                                                                                          .account strong{
                                                                                            display:block;
                                                                                            font-size:14px;
                                                                                            margin-bottom:5px}
                                                                                            .account button{
                                                                                              color:#444a54;
                                                                                              background:none;
                                                                                              border-color:#d5bf9f;
                                                                                              margin-top:17px;
                                                                                              width:100%}
                                                                                              .main{
                                                                                                grid-column:2;
                                                                                                min-width:0}
                                                                                                .topbar{
                                                                                                  background:#fff;
                                                                                                  border-bottom:1px solid var(--line);
                                                                                                  padding:17px 35px;
                                                                                                  display:flex;
                                                                                                  justify-content:space-between;
                                                                                                  align-items:center;
                                                                                                  gap:16px;
                                                                                                  font-size:13px}
                                                                                                  .topbar .sim{
                                                                                                    color:#7c5626;
                                                                                                    background:#fcf4e5;
                                                                                                    padding:5px 9px;
                                                                                                    border-radius:4px}
                                                                                                    .content{
                                                                                                      max-width:1500px;
                                                                                                      padding:33px 35px 50px;
                                                                                                      margin:auto}
                                                                                                      .page-head{
                                                                                                        display:flex;
                                                                                                        align-items:center;
                                                                                                        justify-content:space-between;
                                                                                                        margin-bottom:27px;
                                                                                                        gap:20px}
                                                                                                        .page-head p{
                                                                                                          margin-bottom:0;
                                                                                                          color:var(--muted);
                                                                                                          font-size:14px}
                                                                                                          .head-actions,.actions{
                                                                                                            display:flex;
                                                                                                            flex-wrap:wrap;
                                                                                                            gap:8px;
                                                                                                            align-items:center}
                                                                                                            .alert{
                                                                                                              border:1px solid #e7d8b6;
                                                                                                              background:#fffbf2;
                                                                                                              color:#775b2a;
                                                                                                              border-radius:8px;
                                                                                                              padding:13px 17px;
                                                                                                              font-size:13px;
                                                                                                              line-height:1.65;
                                                                                                              margin-bottom:24px}
                                                                                                              .stats{
                                                                                                                display:grid;
                                                                                                                grid-template-columns:repeat(4,1fr);
                                                                                                                gap:18px;
                                                                                                                margin-bottom:26px}
                                                                                                                .stat{
                                                                                                                  background:white;
                                                                                                                  border:1px solid var(--line);
                                                                                                                  padding:21px 23px;
                                                                                                                  border-radius:9px}
                                                                                                                  .stat span{
                                                                                                                    color:var(--muted);
                                                                                                                    font-size:13px}
                                                                                                                    .stat strong{
                                                                                                                      display:block;
                                                                                                                      font-size:34px;
                                                                                                                      font-weight:600;
                                                                                                                      margin-top:12px}
                                                                                                                      .stat small{
                                                                                                                        display:block;
                                                                                                                        margin-top:5px}
                                                                                                                        .panel{
                                                                                                                          background:#fff;
                                                                                                                          border:1px solid var(--line);
                                                                                                                          border-radius:9px;
                                                                                                                          padding:23px;
                                                                                                                          margin-bottom:22px}
                                                                                                                          .panel-title{
                                                                                                                            display:flex;
                                                                                                                            justify-content:space-between;
                                                                                                                            align-items:center;
                                                                                                                            gap:12px;
                                                                                                                            margin-bottom:18px}
                                                                                                                            .panel-title h2{
                                                                                                                              margin-bottom:0}
                                                                                                                              .table-wrap{
                                                                                                                                overflow:auto}
                                                                                                                                table{
                                                                                                                                  width:100%;
                                                                                                                                  border-collapse:collapse;
                                                                                                                                  font-size:13px;
                                                                                                                                  text-align:left}
                                                                                                                                  th{
                                                                                                                                    font-weight:500;
                                                                                                                                    color:var(--muted);
                                                                                                                                    background:#fffdf8;
                                                                                                                                    white-space:nowrap}
                                                                                                                                    td,th{
                                                                                                                                      padding:13px 12px;
                                                                                                                                      border-bottom:1px solid #ece5db;
                                                                                                                                      vertical-align:top}
                                                                                                                                      td strong{
                                                                                                                                        display:block;
                                                                                                                                        font-size:14px;
                                                                                                                                        font-weight:600}
                                                                                                                                        td small{
                                                                                                                                          display:block;
                                                                                                                                          margin-top:5px}
                                                                                                                                          tr:last-child td{
                                                                                                                                            border-bottom:0}
                                                                                                                                            .badge{
                                                                                                                                              display:inline-block;
                                                                                                                                              font-size:12px;
                                                                                                                                              padding:4px 8px;
                                                                                                                                              border-radius:5px;
                                                                                                                                              white-space:nowrap;
                                                                                                                                              background:#f0ece5;
                                                                                                                                              color:#70685c}
                                                                                                                                              .badge.active,.badge.available,.badge.applied,.badge.completed,.badge.verified{
                                                                                                                                                color:#24674f;
                                                                                                                                                background:#e7f4e9}
                                                                                                                                                .badge.expired,.badge.pending_recovery,.badge.fault{
                                                                                                                                                  color:#a44733;
                                                                                                                                                  background:#fff0e9}
                                                                                                                                                  .badge.awaiting_payment,.badge.awaiting_delivery,.badge.pending,.badge.awaiting_redelivery,.badge.claimed,.badge.cleaning{
                                                                                                                                                    color:#8a6524;
                                                                                                                                                    background:#faf2db}
                                                                                                                                                    .grid-2{
                                                                                                                                                      display:grid;
                                                                                                                                                      grid-template-columns:1fr 1fr;
                                                                                                                                                      gap:22px}
                                                                                                                                                      .device-grid{
                                                                                                                                                        display:grid;
                                                                                                                                                        grid-template-columns:repeat(auto-fill,minmax(285px,1fr));
                                                                                                                                                        gap:20px}
                                                                                                                                                        .device-card{
                                                                                                                                                          background:white;
                                                                                                                                                          border:1px solid var(--line);
                                                                                                                                                          border-radius:9px;
                                                                                                                                                          padding:23px}
                                                                                                                                                          .device-card .device-title{
                                                                                                                                                            display:flex;
                                                                                                                                                            justify-content:space-between;
                                                                                                                                                            gap:10px;
                                                                                                                                                            margin-bottom:20px}
                                                                                                                                                            .device-card h3{
                                                                                                                                                              margin-bottom:5px}
                                                                                                                                                              .device-card .specs{
                                                                                                                                                                padding:13px;
                                                                                                                                                                background:#faf7f0;
                                                                                                                                                                border-radius:6px;
                                                                                                                                                                font-size:13px;
                                                                                                                                                                color:var(--muted);
                                                                                                                                                                line-height:1.8;
                                                                                                                                                                margin:17px 0}
                                                                                                                                                                .empty{
                                                                                                                                                                  text-align:center;
                                                                                                                                                                  padding:35px;
                                                                                                                                                                  color:var(--muted);
                                                                                                                                                                  font-size:14px}
                                                                                                                                                                  .order-card{
                                                                                                                                                                    background:white;
                                                                                                                                                                    border:1px solid var(--line);
                                                                                                                                                                    border-radius:9px;
                                                                                                                                                                    padding:25px;
                                                                                                                                                                    margin-bottom:20px}
                                                                                                                                                                    .order-card header{
                                                                                                                                                                      display:flex;
                                                                                                                                                                      justify-content:space-between;
                                                                                                                                                                      align-items:center;
                                                                                                                                                                      margin-bottom:22px}
                                                                                                                                                                      .order-card h2{
                                                                                                                                                                        margin:0}
                                                                                                                                                                        .lease{
                                                                                                                                                                          display:grid;
                                                                                                                                                                          grid-template-columns:repeat(3,1fr);
                                                                                                                                                                          gap:20px;
                                                                                                                                                                          background:#fbf7ef;
                                                                                                                                                                          padding:19px;
                                                                                                                                                                          border-radius:7px;
                                                                                                                                                                          margin-bottom:18px}
                                                                                                                                                                          .lease span{
                                                                                                                                                                            font-size:12px;
                                                                                                                                                                            color:var(--muted)}
                                                                                                                                                                            .lease strong{
                                                                                                                                                                              display:block;
                                                                                                                                                                              margin-top:7px;
                                                                                                                                                                              font-size:15px;
                                                                                                                                                                              font-weight:600}
                                                                                                                                                                              .instructions{
                                                                                                                                                                                white-space:pre-wrap;
                                                                                                                                                                                overflow-wrap:anywhere;
                                                                                                                                                                                border-left:3px solid #e9a14b;
                                                                                                                                                                                padding:10px 17px;
                                                                                                                                                                                background:#fff8ed;
                                                                                                                                                                                margin:18px 0;
                                                                                                                                                                                font-size:14px;
                                                                                                                                                                                line-height:1.8}
                                                                                                                                                                                .timeline{
                                                                                                                                                                                  padding:0;
                                                                                                                                                                                  list-style:none}
                                                                                                                                                                                  .timeline li{
                                                                                                                                                                                    border-left:2px solid #e5ddd0;
                                                                                                                                                                                    padding:0 0 20px 18px;
                                                                                                                                                                                    margin-left:4px;
                                                                                                                                                                                    font-size:14px}
                                                                                                                                                                                    .timeline small{
                                                                                                                                                                                      display:block}
                                                                                                                                                                                      .recovery-checks{
                                                                                                                                                                                        display:grid;
                                                                                                                                                                                        gap:9px;
                                                                                                                                                                                        margin:18px 0}
                                                                                                                                                                                        .check-row{
                                                                                                                                                                                          display:flex;
                                                                                                                                                                                          align-items:center;
                                                                                                                                                                                          justify-content:space-between;
                                                                                                                                                                                          padding:10px 12px;
                                                                                                                                                                                          background:#faf7f0;
                                                                                                                                                                                          border-radius:5px;
                                                                                                                                                                                          gap:10px}
                                                                                                                                                                                          .check-row span{
                                                                                                                                                                                            font-size:14px}
                                                                                                                                                                                            .done{
                                                                                                                                                                                              color:var(--primary)}
                                                                                                                                                                                              .settings-form{
                                                                                                                                                                                                max-width:670px}
                                                                                                                                                                                                .settings-form button{
                                                                                                                                                                                                  margin-top:22px}
                                                                                                                                                                                                  .prewrap{
                                                                                                                                                                                                    white-space:pre-wrap;
                                                                                                                                                                                                    overflow-wrap:anywhere}
                                                                                                                                                                                                    dialog{
                                                                                                                                                                                                      border:0;
                                                                                                                                                                                                      border-radius:12px;
                                                                                                                                                                                                      width:min(540px,calc(100vw - 30px));
                                                                                                                                                                                                      max-height:90vh;
                                                                                                                                                                                                      padding:26px;
                                                                                                                                                                                                      box-shadow:0 20px 80px #30343c26}
                                                                                                                                                                                                      dialog::backdrop{
                                                                                                                                                                                                        background:#29272180}
                                                                                                                                                                                                        dialog header{
                                                                                                                                                                                                          display:flex;
                                                                                                                                                                                                          justify-content:space-between;
                                                                                                                                                                                                          align-items:center;
                                                                                                                                                                                                          margin-bottom:12px}
                                                                                                                                                                                                          dialog header h2{
                                                                                                                                                                                                            margin:0}
                                                                                                                                                                                                            dialog footer{
                                                                                                                                                                                                              display:flex;
                                                                                                                                                                                                              justify-content:flex-end;
                                                                                                                                                                                                              gap:10px;
                                                                                                                                                                                                              margin-top:20px}
                                                                                                                                                                                                              .toast{
                                                                                                                                                                                                                position:fixed;
                                                                                                                                                                                                                bottom:25px;
                                                                                                                                                                                                                right:28px;
                                                                                                                                                                                                                max-width:440px;
                                                                                                                                                                                                                background:#3c4149;
                                                                                                                                                                                                                color:#fff;
                                                                                                                                                                                                                border-radius:8px;
                                                                                                                                                                                                                padding:14px 20px;
                                                                                                                                                                                                                box-shadow:0 4px 24px #0002;
                                                                                                                                                                                                                z-index:100;
                                                                                                                                                                                                                line-height:1.6}
                                                                                                                                                                                                                .toast.failure{
                                                                                                                                                                                                                  background:#8d3731}
                                                                                                                                                                                                                  .chip{
                                                                                                                                                                                                                    font-size:12px;
                                                                                                                                                                                                                    background:#eee8df;
                                                                                                                                                                                                                    padding:3px 7px;
                                                                                                                                                                                                                    border-radius:4px}
                                                                                                                                                                                                                    .task-title{
                                                                                                                                                                                                                      display:flex;
                                                                                                                                                                                                                      justify-content:space-between;
                                                                                                                                                                                                                      gap:15px}
                                                                                                                                                                                                                      .task-title h3{
                                                                                                                                                                                                                        margin-bottom:8px}
                                                                                                                                                                                                                        .footer-note{
                                                                                                                                                                                                                          font-size:12px;
                                                                                                                                                                                                                          color:var(--muted);
                                                                                                                                                                                                                          margin-top:25px;
                                                                                                                                                                                                                          line-height:1.8}
                                                                                                                                                                                                                          @media(max-width:1050px){
                                                                                                                                                                                                                            .shell{
                                                                                                                                                                                                                              grid-template-columns:188px 1fr}
                                                                                                                                                                                                                              .sidebar{
                                                                                                                                                                                                                                width:188px;
                                                                                                                                                                                                                                padding:25px 12px}
                                                                                                                                                                                                                                .content{
                                                                                                                                                                                                                                  padding:26px 22px}
                                                                                                                                                                                                                                  .topbar{
                                                                                                                                                                                                                                    padding:15px 22px}
                                                                                                                                                                                                                                    .stats{
                                                                                                                                                                                                                                      grid-template-columns:repeat(2,1fr)}
                                                                                                                                                                                                                                      .grid-2{
                                                                                                                                                                                                                                        grid-template-columns:1fr}

                                                                                                                                                                                                                                        }
                                                                                                                                                                                                                                        @media(max-width:700px){






                                                                                                                                                                                                                                                      .shell{
                                                                                                                                                                                                                                                        display:block}
                                                                                                                                                                                                                                                        .sidebar{
                                                                                                                                                                                                                                                          position:static;
                                                                                                                                                                                                                                                          width:auto;
                                                                                                                                                                                                                                                          padding:17px}
                                                                                                                                                                                                                                                          .sidebar .brand{
                                                                                                                                                                                                                                                            margin:0 0 18px}
                                                                                                                                                                                                                                                            .sidebar nav{
                                                                                                                                                                                                                                                              display:flex;
                                                                                                                                                                                                                                                              overflow:auto}
                                                                                                                                                                                                                                                              .sidebar nav button{
                                                                                                                                                                                                                                                                white-space:nowrap;
                                                                                                                                                                                                                                                                padding:9px}
                                                                                                                                                                                                                                                                .sidebar .account{
                                                                                                                                                                                                                                                                  margin-top:14px;
                                                                                                                                                                                                                                                                  padding:13px 0 0;
                                                                                                                                                                                                                                                                  display:flex;
                                                                                                                                                                                                                                                                  align-items:center;
                                                                                                                                                                                                                                                                  gap:12px}
                                                                                                                                                                                                                                                                  .account strong{
                                                                                                                                                                                                                                                                    display:inline}
                                                                                                                                                                                                                                                                    .account button{
                                                                                                                                                                                                                                                                      width:auto;
                                                                                                                                                                                                                                                                      margin:0 0 0 auto;
                                                                                                                                                                                                                                                                      padding:6px 10px}
                                                                                                                                                                                                                                                                      .topbar{
                                                                                                                                                                                                                                                                        padding:14px 18px;
                                                                                                                                                                                                                                                                        align-items:flex-start}
                                                                                                                                                                                                                                                                        .content{
                                                                                                                                                                                                                                                                          padding:24px 16px}
                                                                                                                                                                                                                                                                          .page-head{
                                                                                                                                                                                                                                                                            align-items:flex-start;
                                                                                                                                                                                                                                                                            flex-direction:column}
                                                                                                                                                                                                                                                                            .page-head h1{
                                                                                                                                                                                                                                                                              font-size:25px}
                                                                                                                                                                                                                                                                              .stats{
                                                                                                                                                                                                                                                                                gap:10px}
                                                                                                                                                                                                                                                                                .stat{
                                                                                                                                                                                                                                                                                  padding:17px}
                                                                                                                                                                                                                                                                                  .stat strong{
                                                                                                                                                                                                                                                                                    font-size:28px}
                                                                                                                                                                                                                                                                                    .panel{
                                                                                                                                                                                                                                                                                      padding:17px}
                                                                                                                                                                                                                                                                                      .lease{
                                                                                                                                                                                                                                                                                        grid-template-columns:1fr;
                                                                                                                                                                                                                                                                                        gap:15px}
                                                                                                                                                                                                                                                                                        .device-grid{
                                                                                                                                                                                                                                                                                          grid-template-columns:1fr}
                                                                                                                                                                                                                                                                                          .order-card{
                                                                                                                                                                                                                                                                                            padding:19px}
                                                                                                                                                                                                                                                                                            .task-title{
                                                                                                                                                                                                                                                                                              flex-direction:column}
                                                                                                                                                                                                                                                                                              .toast{
                                                                                                                                                                                                                                                                                                right:15px;
                                                                                                                                                                                                                                                                                                left:15px;
                                                                                                                                                                                                                                                                                                bottom:15px}
                                                                                                                                                                                                                                                                                              }
